export declare const OPENAI_V1_UPLOADS_ENDPOINT: "/v1/uploads";
export declare const DEFAULT_OPENAI_V1_UPLOADS_BASE_URL: "https://api.openai.com";
export type OpenAIV1UploadsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1UploadsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1UploadsErrorCode = "MISSING_OPERATION" | "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 OpenAIV1UploadsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1UploadsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1UploadsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1UploadsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_UPLOADS_ENDPOINT;
    operation: string;
    method: OpenAIV1UploadsMethod;
    url: string;
    pathSuffix: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1UploadsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1UploadsProviderCaller = (envelope: OpenAIV1UploadsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1UploadsInvocationRequest = {
    operation?: string;
    method?: OpenAIV1UploadsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    baseUrl?: string;
    auth?: OpenAIV1UploadsAuthEnvelope;
    runtime?: OpenAIV1UploadsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1UploadsGate;
    governance?: OpenAIV1UploadsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1UploadsProviderCaller;
};
export type OpenAIV1UploadsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_UPLOADS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1UploadsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_UPLOADS_ENDPOINT;
    operation: string;
    rawShape: "upload-object" | "upload-list" | "mock" | "dry-run";
};
export type OpenAIV1UploadsError = {
    code: OpenAIV1UploadsErrorCode;
    message: string;
    boundary: OpenAIV1UploadsBoundary;
    retryable: boolean;
};
export type OpenAIV1UploadsResult = {
    ok: true;
    request: OpenAIV1UploadsRequestEnvelope;
    response: OpenAIV1UploadsResponseEnvelope;
    capability: OpenAIV1UploadsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1UploadsError;
    request?: OpenAIV1UploadsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1UploadsProviderError(error: unknown): OpenAIV1UploadsErrorCode;
export declare function invokeOpenAIV1Uploads(input?: OpenAIV1UploadsInvocationRequest): Promise<OpenAIV1UploadsResult>;
