import type { OffloadStore } from "./offload-store.js"; /** * Characters of an oversized output kept when offloading it FAILED. The stub * then carries this much preview and nothing else, so a broken spill path can * never put the full output into the model context. */ export declare const OFFLOAD_FAILURE_PREVIEW_CHARS = 8192; export interface OffloadToolOutputCtx { readonly toolName: string; readonly thresholdChars: number; readonly previewLines: number; readonly store: Pick; readonly signal?: AbortSignal; readonly toolCallId?: string; /** * Told when the offload write fails, with the sanitized error message (the * same text the stub carries). The caller decides how to surface it. */ readonly onError?: (message: string) => void; } /** * The error's message with absolute paths elided: a failed write's message can * name a host path outside the workspace, which the model must not see. */ export declare function sanitizeOffloadError(error: unknown): string; export declare function offloadToolOutput(content: string, ctx: OffloadToolOutputCtx): Promise; //# sourceMappingURL=offload-tool-output.d.ts.map