import type { QirrelContext } from "../types"; import type { LLMResponse, LLMConfig } from "./types"; export interface FallbackHandler { handle(error: Error, originalPrompt: string, config?: Partial): Promise; } export declare class DefaultFallbackHandler implements FallbackHandler { handle(error: Error, originalPrompt: string, config?: Partial): Promise; } export declare class SimpleTextFallbackHandler implements FallbackHandler { handle(error: Error, originalPrompt: string, config?: Partial): Promise; } export declare class FallbackLLMAdapterWrapper { private primaryAdapter; private fallbackHandler; constructor(primaryAdapter: any, fallbackHandler?: FallbackHandler); generate(prompt: string, options?: Partial): Promise; generateWithContext(input: QirrelContext, promptTemplate: string, options?: Partial): Promise; }