export declare const OPENAI_V1_REALTIME_CLIENT_SECRETS_ENDPOINT: "/v1/realtime/client_secrets";
export declare const DEFAULT_OPENAI_V1_REALTIME_CLIENT_SECRETS_BASE_URL: "https://api.openai.com";
export type OpenAIV1RealtimeClientSecretsMethod = "POST";
export type OpenAIV1RealtimeClientSecretsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1RealtimeClientSecretsErrorCode = "MISSING_REQUEST_BODY" | "INVALID_REQUEST_BODY" | "MISSING_RUNTIME_ID" | "INVALID_TIMEOUT" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "AUTH_REJECTED" | "SCOPE_DENIED" | "CALLER_REQUIRED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "RESPONSE_FORMAT_DRIFT" | "CALLER_FAILED";
export type OpenAIV1RealtimeClientSecretsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1RealtimeClientSecretsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1RealtimeClientSecretsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1RealtimeClientSecretsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_REALTIME_CLIENT_SECRETS_ENDPOINT;
    method: OpenAIV1RealtimeClientSecretsMethod;
    url: string;
    requestBody: Record<string, unknown>;
    headers: Readonly<Record<string, string>>;
    timeoutMs: number;
    runtime: Required<OpenAIV1RealtimeClientSecretsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1RealtimeClientSecretsProviderCaller = (envelope: OpenAIV1RealtimeClientSecretsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1RealtimeClientSecretsInvocationRequest = {
    requestBody?: unknown;
    baseUrl?: string;
    headers?: Readonly<Record<string, string | undefined>>;
    auth?: OpenAIV1RealtimeClientSecretsAuthEnvelope;
    runtime?: OpenAIV1RealtimeClientSecretsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    timeoutMs?: number;
    contract?: OpenAIV1RealtimeClientSecretsGate;
    governance?: OpenAIV1RealtimeClientSecretsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1RealtimeClientSecretsProviderCaller;
};
export type OpenAIV1RealtimeClientSecretsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_REALTIME_CLIENT_SECRETS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1RealtimeClientSecretsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_REALTIME_CLIENT_SECRETS_ENDPOINT;
    rawShape: "realtime-client-secret" | "mock" | "dry-run";
};
export type OpenAIV1RealtimeClientSecretsError = {
    code: OpenAIV1RealtimeClientSecretsErrorCode;
    message: string;
    boundary: OpenAIV1RealtimeClientSecretsBoundary;
    retryable: boolean;
};
export type OpenAIV1RealtimeClientSecretsResult = {
    ok: true;
    request: OpenAIV1RealtimeClientSecretsRequestEnvelope;
    response: OpenAIV1RealtimeClientSecretsResponseEnvelope;
    capability: OpenAIV1RealtimeClientSecretsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1RealtimeClientSecretsError;
    request?: OpenAIV1RealtimeClientSecretsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1RealtimeClientSecretsProviderError(error: unknown): OpenAIV1RealtimeClientSecretsErrorCode;
export declare function invokeOpenAIV1RealtimeClientSecrets(input?: OpenAIV1RealtimeClientSecretsInvocationRequest): Promise<OpenAIV1RealtimeClientSecretsResult>;
