/** * MCP Router Output Compressor * * Compresses large tool outputs before they enter the LLM context window. * - Small outputs (<5KB): pass through unchanged * - Medium outputs (5-10KB): head+tail smart truncation * - Large outputs (>10KB) with intent: FTS5 index-then-search, return only matching snippets */ export interface CompressionStats { originalBytes: number; compressedBytes: number; savings: string; method: 'passthrough' | 'truncated' | 'indexed'; } export interface CompressedOutput { output: unknown; stats: CompressionStats; } /** * Compress a tool output for context efficiency. */ export declare function compressToolOutput(result: unknown, options?: { maxBytes?: number; intent?: string; }): CompressedOutput; //# sourceMappingURL=output-compressor.d.ts.map