/* eslint-disable @typescript-eslint/no-explicit-any */ import type React from 'react'; import type { DropEntry } from '../../lib/sftpFileUtils'; import type { GroupConfig, Host, Identity, KnownHost, ProxyProfile, SSHKey, Snippet, TerminalSession, TerminalTheme, Workspace, } from '../../types'; import type { PendingSftpUpload, PendingTerminalSelectionForAI, SidePanelTab, SnippetExecutor, TerminalLayerProps, } from './TerminalLayerSupport'; export type TerminalLayerStableSnapshot = { props: TerminalLayerProps; t: (key: string) => string; terminalBackend: ReturnType; terminalRendererCwdBySessionRef: React.MutableRefObject>; hosts: Host[]; customGroups: string[]; sessions: TerminalSession[]; workspaces: Workspace[]; draggingSessionId: string | null; hostMap: Map; hostMapRef: React.MutableRefObject>; effectiveHosts: Host[]; sessionHostsMap: Map; sessionHostsMapRef: React.MutableRefObject>; sessionChainHostsMap: Map; sessionSudoAutofillPasswordsMap: Map; workspaceById: Map; snippetExecutorsRef: React.MutableRefObject>; activeTabIdRef: React.MutableRefObject; activeWorkspaceRef: React.MutableRefObject; activeSessionRef: React.MutableRefObject; focusedSessionIdRef: React.MutableRefObject; sessionsRef: React.MutableRefObject; workspacesRef: React.MutableRefObject; hostsRef: React.MutableRefObject; onSetWorkspaceFocusedSessionRef: React.MutableRefObject; sidePanelOpenTabs: Map; setSidePanelOpenTabs: React.Dispatch>>; sidePanelOpenTabsRef: React.MutableRefObject>; sidePanelWidth: number; setSidePanelWidth: (value: number) => void; sidePanelPosition: 'left' | 'right'; setSidePanelPosition: (value: 'left' | 'right') => void; sftpHostForTab: Map; setSftpHostForTab: React.Dispatch>>; sftpHostForTabRef: React.MutableRefObject>; sftpInitialLocationForTab: Map; setSftpInitialLocationForTab: React.Dispatch>>; sftpPendingUploadsForTab: Map; setSftpPendingUploadsForTab: React.Dispatch>>; pendingTerminalSelectionForAI: PendingTerminalSelectionForAI | null; setPendingTerminalSelectionForAI: React.Dispatch>; lastSidePanelTabRef: React.MutableRefObject>; isComposeBarOpen: boolean; setIsComposeBarOpen: React.Dispatch>; splitHorizontalHandlersRef: React.MutableRefObject void>>; splitVerticalHandlersRef: React.MutableRefObject void>>; onSplitSessionRef: React.MutableRefObject; workspaceFocusHandlersRef: React.MutableRefObject void>>; workspaceBroadcastHandlersRef: React.MutableRefObject void>>; onToggleWorkspaceViewModeRef: React.MutableRefObject; onToggleBroadcastRef: React.MutableRefObject; validAIScopeTargetIds: Set; validSessionActivityIds: Set; activityTrackedSessions: TerminalSession[]; handleCloseSession: (sessionId: string) => void; handleStatusChange: (sessionId: string, status: TerminalSession['status']) => void; handleSessionExit: (sessionId: string, evt: any) => void; handleOsDetected: (hostId: string, distro: string) => void; handleUpdateHost: (host: Host) => void; handleAddKnownHost: (knownHost: KnownHost) => void; handleCommandExecuted: (command: string, hostId: string, hostLabel: string, sessionId: string) => void; handleTerminalDataCapture: (sessionId: string, data: string) => void; handleBroadcastInput: (data: string, sourceSessionId: string) => void; handleSnippetExecutorChange: (sessionId: string, executor: SnippetExecutor | null) => void; handleTerminalFontSizeChange: (sessionId: string, nextFontSize: number) => void; handleOpenSftp: (host: Host, initialPath?: string, pendingUploadEntries?: DropEntry[], sourceSessionId?: string) => void; handlePendingUploadHandled: (tabId: string, requestId: string) => void; handleSftpInitialLocationApplied: (tabId: string, location: { hostId: string; path: string }) => void; handleSidePanelResizeStart: (e: React.MouseEvent) => void; handleToggleWorkspaceComposeBar: () => void; handleSwitchSidePanelTab: (tab: SidePanelTab) => void; handleToggleSftpFromBar: () => void; handleOpenScripts: () => void; handleOpenHistory: () => void; handleHistoryPaste: (command: string) => void; handleHistoryRun: (command: string) => void; handleToggleScriptsSidePanel: () => void; handleToggleSidePanel: () => void; handleOpenTheme: () => void; handleOpenAI: () => void; handleOpenSystem: () => void; handleAddSelectionToAI: (sourceSessionId: string, selection: string) => void; handlePendingTerminalSelectionConsumed: (requestId: string) => void; handleToggleAiFromTopBar: () => void; resolveSftpHostForTab: (tabId: string) => Host | null; handleCloseSidePanel: () => void; getTerminalCwd: () => Promise; refocusTerminalSession: (sessionId?: string | null) => void; refocusActiveTerminalSession: () => void; onSessionData: ReturnType['onSessionData']; toggleScriptsSidePanelRef?: React.MutableRefObject<(() => void) | null>; toggleSidePanelRef?: React.MutableRefObject<(() => void) | null>; accentMode: 'theme' | 'custom'; customAccent: string; followAppTerminalTheme: boolean; terminalTheme: TerminalTheme; terminalFontFamilyId: string; fontSize: number; terminalSettings: TerminalLayerProps['terminalSettings']; editorWordWrap: boolean; setEditorWordWrap: (value: boolean) => void; keys: SSHKey[]; identities: Identity[]; snippets: Snippet[]; snippetPackages: string[]; knownHosts: KnownHost[]; hotkeyScheme: TerminalLayerProps['hotkeyScheme']; disableTerminalFontZoom: TerminalLayerProps['disableTerminalFontZoom']; keyBindings: TerminalLayerProps['keyBindings']; onHotkeyAction: TerminalLayerProps['onHotkeyAction']; onConnectToHost: TerminalLayerProps['onConnectToHost']; onCreateLocalTerminal: TerminalLayerProps['onCreateLocalTerminal']; onReorderWorkspaceSessions: TerminalLayerProps['onReorderWorkspaceSessions']; onRequestAddToWorkspace: TerminalLayerProps['onRequestAddToWorkspace']; onSetWorkspaceFocusedSession: TerminalLayerProps['onSetWorkspaceFocusedSession']; onToggleWorkspaceViewMode: TerminalLayerProps['onToggleWorkspaceViewMode']; onSplitSession: TerminalLayerProps['onSplitSession']; isBroadcastEnabled: TerminalLayerProps['isBroadcastEnabled']; updateHosts: TerminalLayerProps['updateHosts']; updateSnippets: TerminalLayerProps['updateSnippets']; updateSnippetPackages: TerminalLayerProps['updateSnippetPackages']; sftpDefaultViewMode: TerminalLayerProps['sftpDefaultViewMode']; sftpDoubleClickBehavior: TerminalLayerProps['sftpDoubleClickBehavior']; sftpAutoSync: TerminalLayerProps['sftpAutoSync']; sftpShowHiddenFiles: TerminalLayerProps['sftpShowHiddenFiles']; sftpUseCompressedUpload: TerminalLayerProps['sftpUseCompressedUpload']; sessionLogConfig: { enabled: true; directory: string; format: string; timestampsEnabled?: boolean } | undefined; sshDebugLogsEnabled: boolean; groupConfigs: GroupConfig[]; proxyProfiles: ProxyProfile[]; shellHistory: import('../../types').ShellHistoryEntry[]; };