import type { CompletionRequest } from '../types/messages.js'; import type { DensificationConfig } from '../types/optimizer.js'; /** Rewrites prompts to use fewer tokens without changing what they say. */ export declare class PromptDensifier { /** Densifies every text message in a request. */ densifyRequest(request: CompletionRequest, config?: DensificationConfig): { request: CompletionRequest; techniques: string[]; }; /** * Densifies one text, leaving fenced code untouched unless configured otherwise, and records the * techniques applied. */ densifyText(text: string, techniques: string[], applied: Set, config: DensificationConfig): string; private splitCodeBlocks; }