export declare const FILE_OFFLOAD_THRESHOLD = 30000; export declare const PREVIEW_SIZE = 2000; export declare const FILE_FIRST_PREVIEW_SIZE = 500; /** * Should this content be offloaded to a file instead of returned inline? */ export declare function shouldOffload(content: string): boolean; /** * Write content to a temp file and track it for cleanup. * Returns the file path. */ export declare function offloadToFile(content: string): string; /** * Build the replacement result text: preview + file path + instructions. */ export declare function buildOffloadResult(content: string, filePath: string): string; /** * Remove all tracked temp files. Called on session_shutdown. */ export declare function cleanupTempFiles(): void;