import type { AssistantImages, ProviderImagesOptions } from "@earendil-works/pi-ai/compat";
import { generateImages } from "@earendil-works/pi-ai/compat";
import type { ImageGenCandidate } from "./auth.ts";
import { type ImageModelId } from "./params.ts";
export type ImageComplexity = "low" | "medium" | "high";
export interface ModelAttempt {
    images: AssistantImages;
    model: ImageModelId;
    fallbackFrom?: ImageModelId;
}
/**
 * Sends one generation request to `auth`, and when the endpoint answers that it does not serve the requested
 * 2.6 model (gateway allowlists lag OpenAI releases, senpi#5820) retries exactly once on the 2.5 counterpart
 * without `complexity`, which 2.5 does not accept. Every other result, success or failure, is returned as is.
 */
export declare function requestImagesWithModelFallback(auth: ImageGenCandidate, model: ImageModelId, context: Parameters<typeof generateImages>[1], options: ProviderImagesOptions, complexity: ImageComplexity | undefined): Promise<ModelAttempt>;
//# sourceMappingURL=model-request.d.ts.map