import { Terminal } from "@xterm/headless"; import type { ManagedSession, UserMessage } from "./types"; /** * Plumbing shared by the two PTY runners (`pty-manager.ts` for Claude, * `codex-pty-runner.ts` for Codex). These were duplicated byte-for-byte in both * files; the copies drifted only in their comments. * * Deliberately plumbing only. The two runners' *detection* logic stays * provider-specific and is not shared: Claude signals readiness with OSC 777 * plus prompt markers, Codex with rendered status-bar predicates and no OSC at * all. Merging those would couple two independent provider contracts. */ export declare const PTY_COLS = 120; export declare const PTY_ROWS = 40; export declare const SCREEN_SCROLLBACK = 1000; export declare const REPLAY_MAX_LINES: number; export declare function loadPty(): Promise; export interface InternalSession extends ManagedSession { process: any; outputBuffer: Buffer; screen: Terminal; inputHistory: UserMessage[]; } export declare function createScreen(): Terminal; export declare function stripAnsi(str: string): string; //# sourceMappingURL=pty-shared.d.ts.map