import { Type } from "typebox";
export declare const DEFAULT_IMAGE_MODEL = "gpt-image-2.6-sunburst";
/**
 * The native Responses `image_generation` tool has no client-side retry, so it stays on the newest model
 * verified end to end through the ChatGPT subscription backend until 2.6 is proven there (senpi#5820).
 */
export declare const NATIVE_IMAGE_MODEL = "gpt-image-2.5-sunburst";
export declare const IMAGE_MODEL_NAMES: {
    readonly "gpt-image-2.6-sunburst": "GPT Image 2.6 Sunburst";
    readonly "gpt-image-2.6-flare": "GPT Image 2.6 Flare";
    readonly "gpt-image-2.5-sunburst": "GPT Image 2.5 Sunburst";
    readonly "gpt-image-2.5-flare": "GPT Image 2.5 Flare";
    readonly "gpt-image-2": "GPT Image 2";
};
export type ImageModelId = keyof typeof IMAGE_MODEL_NAMES;
/** Gateway allowlists lag OpenAI releases: a 2.6 id the endpoint does not serve retries once on its 2.5 counterpart. */
export declare const IMAGE_MODEL_FALLBACKS: Readonly<Partial<Record<ImageModelId, ImageModelId>>>;
/** Only GPT Image 2.6 accepts the `complexity` request field. */
export declare function supportsComplexity(model: ImageModelId): boolean;
export declare const Params: Type.TObject<{
    prompt: Type.TString;
    model: Type.TOptional<Type.TUnion<[Type.TLiteral<"gpt-image-2.6-sunburst">, Type.TLiteral<"gpt-image-2.6-flare">, Type.TLiteral<"gpt-image-2.5-sunburst">, Type.TLiteral<"gpt-image-2.5-flare">, Type.TLiteral<"gpt-image-2">]>>;
    size: Type.TOptional<Type.TString>;
    quality: Type.TOptional<Type.TUnion<[Type.TLiteral<"auto">, Type.TLiteral<"low">, Type.TLiteral<"medium">, Type.TLiteral<"high">, Type.TLiteral<"xhigh">, Type.TLiteral<"max">]>>;
    complexity: Type.TOptional<Type.TUnion<[Type.TLiteral<"low">, Type.TLiteral<"medium">, Type.TLiteral<"high">]>>;
    reference_image_paths: Type.TOptional<Type.TArray<Type.TString>>;
    mask_image_path: Type.TOptional<Type.TString>;
    background: Type.TOptional<Type.TUnion<[Type.TLiteral<"auto">, Type.TLiteral<"transparent">, Type.TLiteral<"opaque">]>>;
    output_format: Type.TOptional<Type.TUnion<[Type.TLiteral<"png">, Type.TLiteral<"jpeg">, Type.TLiteral<"webp">]>>;
    output_compression: Type.TOptional<Type.TInteger>;
    moderation: Type.TOptional<Type.TUnion<[Type.TLiteral<"auto">, Type.TLiteral<"low">]>>;
    n: Type.TOptional<Type.TInteger>;
    output_path: Type.TOptional<Type.TString>;
}>;
export interface GenerateImageDetails {
    paths: string[];
    /** The model that produced the images; differs from the request when `fallbackFrom` is set. */
    model: string;
    /** The requested 2.6 model the endpoint did not serve, when the 2.5 counterpart answered instead. */
    fallbackFrom?: string;
    source: string;
    size: string;
    quality: string;
    background: string;
    outputFormat: string;
    requested: number;
    generated: number;
    revisedPrompts: string[];
    /** Provider-reported transparency of the saved images, when it reports one. */
    transparentBackground?: boolean;
    error?: string;
    /** Logged-in providers passed over because their API serves no OpenAI Images endpoint (senpi#5674). */
    unsupportedProviders?: string[];
    reason?: "missing_config" | "credential_unavailable" | "provider_native_bypass" | "invalid_params" | "write_failed" | "provider_error";
}
export declare function failure(message: string, reason: NonNullable<GenerateImageDetails["reason"]>, base: Pick<GenerateImageDetails, "model" | "size" | "quality" | "background" | "outputFormat" | "requested" | "source">): {
    content: {
        type: "text";
        text: string;
    }[];
    details: GenerateImageDetails;
};
//# sourceMappingURL=params.d.ts.map