import type { WriteStream } from "node:fs"; export declare const DEFAULT_MAX_MODEL_BYTES = 12000; export declare const DEFAULT_MAX_CAPTURE_BYTES: number; export declare function chooseStdio(command: string, preference: boolean | "auto" | undefined): ["ignore" | "inherit", "pipe", "pipe"]; export declare function takeOverCookedStdin(): () => void; export declare function openArtifact(command: string, override?: string): Promise<{ path: string; stream: WriteStream; } | undefined>; export declare class OutputDecoder { private readonly decoder; private sniffed; private nonPrintable; private binaryDetected; decode(chunk: Buffer): { text: string; bytes: number; }; end(): string; get isBinary(): boolean; private sniff; } export declare class RingBuffer { private readonly capacity; private chunks; private bytes; constructor(capacity: number); push(text: string): void; toString(): string; size(): number; }