/**
 * Fallback Provider
 *
 * Generic wrapper that implements LLMProvider by trying a primary provider first,
 * then falling back to a secondary provider on failure.
 *
 * Not Workers AI specific — works with any two providers.
 */
import type { LLMProvider, AnalyzeOptions, AnalyzeResult, StructuredOptions } from './types.js';
import { Logger } from '../../utils/logger.js';
export declare class FallbackProvider implements LLMProvider {
    get name(): import("./types.js").LLMProviderType;
    get defaultModel(): string;
    private primary;
    private fallback;
    private logger;
    constructor(primary: LLMProvider, fallback: LLMProvider, logger?: Logger);
    analyze(prompt: string, options?: AnalyzeOptions): Promise<AnalyzeResult>;
    analyzeStructured<T>(prompt: string, options: StructuredOptions<T>): Promise<{
        data: T;
        usage: AnalyzeResult['usage'];
        estimatedCost: number;
    }>;
    estimateCost(inputTokens: number, outputTokens: number, model?: string): number;
    isAvailable(): Promise<boolean>;
    getStatus(): Promise<{
        available: boolean;
        latencyMs?: number;
        error?: string;
    }>;
}
//# sourceMappingURL=fallback-provider.d.ts.map