import type { OutputPage, TaskResult } from "./contracts.js"; /** Raw command output limits from RFC #2884; session history has separate retention. */ export declare const COMMAND_LIVE_PREVIEW_BYTES = 1048576; export declare const COMMAND_FOREGROUND_SPILL_BYTES = 8388608; export declare const COMMAND_DISK_OUTPUT_CAP_BYTES = 5368709120; export declare const COMMAND_DETAIL_TAIL_BYTES = 8192; /** Observation expiry releases the caller, never the command process. */ export declare const COMMAND_FOREGROUND_BUDGET_MS = 10000; /** Compare logical output bytes to the disk budget without a 32-bit cast. */ export declare function commandSpoolExceedsCap(fileBytes: bigint, capBytes?: bigint): boolean; /** Native completion means the process exited; nonzero shell exits are UI failures. */ export declare function taskOutcomeStatus(result: TaskResult, kind?: "agent" | "command"): TaskResult["kind"]; /** Never join bytes across a retained-output gap as if they were contiguous. */ export declare function taskOutputText(page: OutputPage): string; //# sourceMappingURL=command-output.d.ts.map