export declare const OPENAI_V1_VIDEOS_ENDPOINT: "/v1/videos";
export type OpenAIV1VideosMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1VideosGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1VideosRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type OpenAIV1VideosAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1VideosRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_VIDEOS_ENDPOINT;
    operation: string;
    method: OpenAIV1VideosMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1VideosRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1VideosProviderCaller = (envelope: OpenAIV1VideosRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1VideosInvocationRequest = {
    operation?: string;
    method?: OpenAIV1VideosMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: OpenAIV1VideosAuthEnvelope;
    runtime?: OpenAIV1VideosRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1VideosGate;
    governance?: OpenAIV1VideosGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1VideosProviderCaller;
};
export type OpenAIV1VideosErrorCode = "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 OpenAIV1VideosError = {
    code: OpenAIV1VideosErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type OpenAIV1VideosProviderResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_VIDEOS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1VideosInvocationResult = {
    ok: true;
    request: OpenAIV1VideosRequestEnvelope;
    response: OpenAIV1VideosProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1VideosError;
    request?: OpenAIV1VideosRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1VideosProviderError(error: unknown): OpenAIV1VideosErrorCode;
export declare function invokeOpenAIV1Videos(input?: OpenAIV1VideosInvocationRequest): Promise<OpenAIV1VideosInvocationResult>;
