import type { Tokenizer } from '../types'; /** * Truncate text content to fit within a target token count. * * Uses a binary-search approach to find the longest prefix that fits. * Tries to break at word boundaries when possible. */ export declare function truncateToTokens(text: string, targetTokens: number, tokenizer: Tokenizer): string;