export type ContextProbeFailure = { threshold: number; status: number; statusText?: string; message?: string; responseSnippet?: string; }; export type ContextProbeModelResult = { modelId: string; thresholds: number[]; passed: number[]; maxPassedTokens: number | null; firstFailure?: ContextProbeFailure; }; export declare function buildTextForExactTokenCount(targetTokens: number, encoderModel?: string): string; export declare function countTokens(text: string, encoderModel?: string): number; export declare function probeContextForModel(modelId: string, thresholds: number[], { endpoint, apiKey, timeoutMs, fetcher, maxRetries, encoderModel }: { endpoint: string; apiKey?: string; timeoutMs?: number; fetcher?: typeof fetch; maxRetries?: number; encoderModel?: string; }): Promise;