import type { Readable, Writable } from 'node:stream'; export declare const syncStart = "\u001B[?2026h"; export declare const syncEnd = "\u001B[?2026l"; type StdioStreams = { stdin: Readable | NodeJS.ReadStream; stdout: Writable | NodeJS.WriteStream; }; /** * Detects if the terminal supports synchronized output by querying using DECRQM. * Returns true if supported, false otherwise. * * @param streams - stdin/stdout streams to use for querying * @param timeout - Maximum time to wait for response in ms (default: 100) */ export declare function detectSynchronizedOutput(streams: StdioStreams, timeout?: number): Promise; /** * Detects synchronized output support with caching. * Once detected, the result is cached for subsequent calls. */ export declare function isSynchronizedOutputSupported(streams: StdioStreams, timeout?: number): Promise; /** * Reset the cached support value (mainly for testing). */ export declare function resetSynchronizedOutputCache(): void; export {};