export type PtyTerminalOperation = { type: "data"; data: string; } | { type: "resize"; cols: number; rows: number; }; export interface PtyTerminalSnapshot { version: 1; data: string; cols: number; rows: number; pending: PtyTerminalOperation[]; } /** * Server-side xterm screen model used only for reconnect snapshots. Live PTY * bytes still travel unchanged from node-pty to the browser terminal. */ export declare class PtyTerminalState { private readonly terminal; private readonly serializer; private readonly unicode; private pending; private tail; private checkpointTimer?; private nextId; private committedData; private committedCols; private committedRows; private disposed; constructor(cols: number, rows: number, initialData?: string); write(data: string): void; resize(cols: number, rows: number): void; snapshot(): PtyTerminalSnapshot; dispose(): void; private addPending; private scheduleCheckpoint; }