type Sink = (chunk: string) => void; /** Patch stdout/stderr. Idempotent; only the shell calls this. */ export declare function installOutputRouter(): void; export declare function uninstallOutputRouter(): void; /** Run `fn` with all of its console output captured by `sink`. */ export declare function runWithSink(sink: Sink, fn: () => Promise): Promise; /** * Write to the terminal even from inside a sink. The shell's own chrome * (prompt, job notices) must never be captured into a job's log. */ export declare function writeDirect(text: string): void; export {}; //# sourceMappingURL=output-router.d.ts.map