export type OpenAIAudioVoiceConsentBoundary = "input" | "provider" | "contract" | "governance" | "scope";
export type OpenAIAudioVoiceConsentGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIAudioVoiceConsentRecording = {
    id?: string;
    name?: string;
    mimeType?: string;
    byteLength?: number;
    sourceRef?: string;
};
export type OpenAIAudioVoiceConsentProviderError = {
    status?: number;
    code?: string;
    message?: string;
    timedOut?: boolean;
    rateLimited?: boolean;
    authFailed?: boolean;
    endpointAvailable?: boolean;
};
export type OpenAIAudioVoiceConsentRequest = {
    requestId?: string;
    name?: string;
    language?: string;
    recording?: OpenAIAudioVoiceConsentRecording;
    body?: Readonly<Record<string, unknown>>;
    apiKeyRef?: string;
    organizationId?: string;
    projectId?: string;
    timeoutMs?: number;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    dryRun?: boolean;
    trace?: Readonly<Record<string, string | undefined>>;
    providerResponse?: unknown;
    providerError?: OpenAIAudioVoiceConsentProviderError;
    contract?: OpenAIAudioVoiceConsentGate;
    governance?: OpenAIAudioVoiceConsentGate;
};
export type OpenAIAudioVoiceConsentErrorCode = "MISSING_NAME" | "MISSING_LANGUAGE" | "MISSING_RECORDING" | "INVALID_REQUEST_BODY" | "INVALID_TIMEOUT" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "REAL_PROVIDER_CALL_NOT_ALLOWED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_ENDPOINT_UNAVAILABLE" | "PROVIDER_RESPONSE_DRIFT" | "PROVIDER_REJECTED";
export type OpenAIAudioVoiceConsentError = {
    code: OpenAIAudioVoiceConsentErrorCode;
    message: string;
    boundary: OpenAIAudioVoiceConsentBoundary;
    safeForRuntimeInspection: true;
    providerRawDetailExposed: false;
};
export type OpenAIAudioVoiceConsentEnvelope = {
    provider: "openai";
    endpoint: "/v1/audio/voice_consents";
    method: "POST";
    requestId: string;
    requestShape: "multipart-form-data";
    providerFields: {
        name: string;
        language: string;
        recording: OpenAIAudioVoiceConsentRecording;
    };
    body: Readonly<Record<string, unknown>>;
    auth: {
        apiKeyRef?: string;
        organizationId?: string;
        projectId?: string;
        materialPresent: boolean;
    };
    runtime: {
        timeoutMs?: number;
        requestedScopes: readonly string[];
        dryRun: true;
        unsafeSideEffects: false;
    };
    trace: Readonly<Record<string, string | undefined>>;
};
export type OpenAIAudioVoiceConsentResponseEnvelope = {
    provider: "openai";
    endpoint: "/v1/audio/voice_consents";
    raw: unknown;
    received: true;
    providerRawShapePromoted: false;
};
export type OpenAIAudioVoiceConsentResult = {
    ok: true;
    request: OpenAIAudioVoiceConsentEnvelope;
    response?: OpenAIAudioVoiceConsentResponseEnvelope;
    capability: typeof openAIAudioVoiceConsentsDescriptor;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIAudioVoiceConsentError;
    events: readonly string[];
};
export declare const openAIAudioVoiceConsentsDescriptor: {
    readonly provider: "openai";
    readonly layer: "actualInvocationLayer";
    readonly endpoint: "/v1/audio/voice_consents";
    readonly method: "POST";
    readonly modality: "audio";
    readonly operation: "voice-consent-create";
    readonly requestShape: "multipart-form-data";
    readonly providerRawShapePromoted: false;
    readonly unsafeSideEffects: false;
};
export declare function createOpenAIAudioVoiceConsentInvocation(request?: OpenAIAudioVoiceConsentRequest): OpenAIAudioVoiceConsentResult;
