export declare const OPENAI_V1_VIDEOS_CHARACTERS_ENDPOINT: "/v1/videos/characters";
export type OpenAIV1VideosCharactersMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1VideosCharactersGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1VideosCharactersRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type OpenAIV1VideosCharactersAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1VideosCharactersRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_VIDEOS_CHARACTERS_ENDPOINT;
    operation: string;
    method: OpenAIV1VideosCharactersMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1VideosCharactersRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1VideosCharactersProviderCaller = (envelope: OpenAIV1VideosCharactersRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1VideosCharactersInvocationRequest = {
    operation?: string;
    method?: OpenAIV1VideosCharactersMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: OpenAIV1VideosCharactersAuthEnvelope;
    runtime?: OpenAIV1VideosCharactersRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1VideosCharactersGate;
    governance?: OpenAIV1VideosCharactersGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1VideosCharactersProviderCaller;
};
export type OpenAIV1VideosCharactersErrorCode = "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 OpenAIV1VideosCharactersError = {
    code: OpenAIV1VideosCharactersErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type OpenAIV1VideosCharactersProviderResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_VIDEOS_CHARACTERS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1VideosCharactersInvocationResult = {
    ok: true;
    request: OpenAIV1VideosCharactersRequestEnvelope;
    response: OpenAIV1VideosCharactersProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1VideosCharactersError;
    request?: OpenAIV1VideosCharactersRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1VideosCharactersProviderError(error: unknown): OpenAIV1VideosCharactersErrorCode;
export declare function invokeOpenAIV1VideosCharacters(input?: OpenAIV1VideosCharactersInvocationRequest): Promise<OpenAIV1VideosCharactersInvocationResult>;
