export declare const OPENAI_V1_IMAGES_VARIATIONS_ENDPOINT: "/v1/images/variations";
export declare const DEFAULT_OPENAI_V1_IMAGES_VARIATIONS_BASE_URL: "https://api.openai.com";
export type OpenAIV1ImagesVariationsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1ImagesVariationsErrorCode = "MISSING_IMAGE" | "MISSING_RUNTIME_ID" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "AUTH_REJECTED" | "CALLER_REQUIRED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "RESPONSE_FORMAT_DRIFT" | "CALLER_FAILED";
export type OpenAIV1ImagesVariationsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1ImagesVariationsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1ImagesVariationsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1ImagesVariationInput = {
    id?: string;
    name?: string;
    mimeType?: string;
    byteLength?: number;
    sourceRef?: string;
    providerHandle?: unknown;
};
export type OpenAIV1ImagesVariationsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_IMAGES_VARIATIONS_ENDPOINT;
    operation: "create-image-variation";
    method: "POST";
    url: string;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    image: OpenAIV1ImagesVariationInput;
    runtime: Required<OpenAIV1ImagesVariationsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1ImagesVariationsProviderCaller = (envelope: OpenAIV1ImagesVariationsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1ImagesVariationsInvocationRequest = {
    image?: OpenAIV1ImagesVariationInput;
    body?: unknown;
    baseUrl?: string;
    headers?: Readonly<Record<string, string | undefined>>;
    auth?: OpenAIV1ImagesVariationsAuthEnvelope;
    runtime?: OpenAIV1ImagesVariationsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1ImagesVariationsGate;
    governance?: OpenAIV1ImagesVariationsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectImageListResponse?: boolean;
    caller?: OpenAIV1ImagesVariationsProviderCaller;
};
export type OpenAIV1ImagesVariationsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_IMAGES_VARIATIONS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1ImagesVariationsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_IMAGES_VARIATIONS_ENDPOINT;
    operation: "create-image-variation";
    rawShape: "image-list" | "mock" | "dry-run";
};
export type OpenAIV1ImagesVariationsError = {
    code: OpenAIV1ImagesVariationsErrorCode;
    message: string;
    boundary: OpenAIV1ImagesVariationsBoundary;
    retryable: boolean;
};
export type OpenAIV1ImagesVariationsResult = {
    ok: true;
    request: OpenAIV1ImagesVariationsRequestEnvelope;
    response: OpenAIV1ImagesVariationsResponseEnvelope;
    capability: OpenAIV1ImagesVariationsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1ImagesVariationsError;
    request?: OpenAIV1ImagesVariationsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1ImagesVariationsProviderError(error: unknown): OpenAIV1ImagesVariationsErrorCode;
export declare function invokeOpenAIV1ImagesVariations(input?: OpenAIV1ImagesVariationsInvocationRequest): Promise<OpenAIV1ImagesVariationsResult>;
