/** Root folder for recoverable full tool outputs: `~/.gg/tool-output/`. */
export declare function getToolOutputRoot(): string;
/**
 * Write full content to `~/.gg/tool-output/<yyyy-mm-dd>/<prefix>-<random>.txt`
 * so truncated tool results stay recoverable via `read` with offset/limit
 * instead of forcing the model to re-run the command.
 * Returns the file path. Caller uses it in truncation notices; callers must
 * treat failures as best-effort (never fail the tool result over a full disk).
 */
export declare function writeOverflow(content: string, prefix: string): Promise<string>;
/**
 * Delete `~/.gg/tool-output/` date folders older than 48h. Best-effort:
 * every failure is swallowed — cleanup must never delay or break startup.
 */
export declare function cleanupToolOutputs(maxAgeMs?: number): Promise<void>;
//# sourceMappingURL=overflow.d.ts.map