/** * Token-aware content truncation utility * * Anthropic MCP Directory enforces a 25,000 token response limit. * This utility provides safe truncation with token estimation. */ /** * Truncate content if it exceeds the token ceiling * * @param content Content to potentially truncate * @returns Truncated content and metadata */ export declare function truncateContent(content: string): { content: string; truncated: boolean; truncated_at_chars?: number; }; /** * Estimate token count for a given string * Uses conservative 4 chars per token approximation * * @param text Text to estimate * @returns Estimated token count */ export declare function estimateTokens(text: string): number; //# sourceMappingURL=truncate.d.ts.map