import type { ToolModelConfig } from './tool-model-config.js';
export type ImageAttempt = {
    provider: string;
    model: string;
    error: string;
};
export declare function runWithImageModelFallback<T>(params: {
    toolConfig: ToolModelConfig;
    modelOverride?: string;
    run: (modelRef: string) => Promise<T>;
}): Promise<{
    result: T;
    attempts: ImageAttempt[];
}>;
