export interface ProcessSignalTarget { off(signal: NodeJS.Signals, listener: () => void): unknown; on(signal: NodeJS.Signals, listener: () => void): unknown; } export interface TerminalInput { isRaw?: boolean; isTTY?: boolean; setRawMode?(enabled: boolean): unknown; } export interface TerminalOutput { isTTY?: boolean; write(value: string): unknown; } /** * Inherited child output can enable terminal-emulator interaction modes that * termios raw-mode restoration cannot observe. Disable the common mouse and * focus protocols before returning to the shell so later input stays local to * the prompt. */ export declare const DISABLE_TERMINAL_INTERACTIONS: string; /** * Capture only state that Node can restore portably. The returned cleanup is * idempotent because startup errors and signal propagation can converge on the * same teardown path. */ export declare function captureTerminalState(input: TerminalInput, output: TerminalOutput): () => void; //# sourceMappingURL=terminal.d.ts.map