export type TerminalSnapshot = { app: string; tab: string; content: string; windowTitle: string; }; export type TerminalDiff = { added: TerminalSnapshot[]; removed: TerminalSnapshot[]; changed: { app: string; tab: string; windowTitle: string; newLines: string; }[]; }; /** * Capture the exact text content of all open terminal tabs on macOS. * Supports iTerm2 and Terminal.app. Returns an empty array on non-macOS * platforms or if neither terminal app is running. */ export declare function captureTerminals(): Promise; /** * Compute the diff between two successive snapshots. * * - `added`: tabs present in `current` but not in `previous` * - `removed`: tabs present in `previous` but not in `current` * - `changed`: tabs present in both where content grew — only the newly * appended lines are returned. Tabs whose content shrank or was fully * replaced are treated as changed with the full new content as `newLines`. */ export declare function captureTerminalDiffs(previous: TerminalSnapshot[], current: TerminalSnapshot[]): TerminalDiff;