export declare const OPENAI_V1_REALTIME_SESSIONS_ENDPOINT: "/v1/realtime/sessions";
export declare const DEFAULT_OPENAI_V1_REALTIME_SESSIONS_BASE_URL: "https://api.openai.com";
export type OpenAIV1RealtimeSessionsMethod = "POST";
export type OpenAIV1RealtimeSessionsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1RealtimeSessionsErrorCode = "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 OpenAIV1RealtimeSessionsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1RealtimeSessionsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1RealtimeSessionsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1RealtimeSessionsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_REALTIME_SESSIONS_ENDPOINT;
    method: OpenAIV1RealtimeSessionsMethod;
    url: string;
    requestBody: Record<string, unknown>;
    headers: Readonly<Record<string, string>>;
    timeoutMs: number;
    runtime: Required<OpenAIV1RealtimeSessionsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1RealtimeSessionsProviderCaller = (envelope: OpenAIV1RealtimeSessionsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1RealtimeSessionsInvocationRequest = {
    requestBody?: unknown;
    baseUrl?: string;
    headers?: Readonly<Record<string, string | undefined>>;
    auth?: OpenAIV1RealtimeSessionsAuthEnvelope;
    runtime?: OpenAIV1RealtimeSessionsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    timeoutMs?: number;
    contract?: OpenAIV1RealtimeSessionsGate;
    governance?: OpenAIV1RealtimeSessionsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1RealtimeSessionsProviderCaller;
};
export type OpenAIV1RealtimeSessionsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_REALTIME_SESSIONS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1RealtimeSessionsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_REALTIME_SESSIONS_ENDPOINT;
    rawShape: "realtime-session" | "mock" | "dry-run";
};
export type OpenAIV1RealtimeSessionsError = {
    code: OpenAIV1RealtimeSessionsErrorCode;
    message: string;
    boundary: OpenAIV1RealtimeSessionsBoundary;
    retryable: boolean;
};
export type OpenAIV1RealtimeSessionsResult = {
    ok: true;
    request: OpenAIV1RealtimeSessionsRequestEnvelope;
    response: OpenAIV1RealtimeSessionsResponseEnvelope;
    capability: OpenAIV1RealtimeSessionsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1RealtimeSessionsError;
    request?: OpenAIV1RealtimeSessionsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1RealtimeSessionsProviderError(error: unknown): OpenAIV1RealtimeSessionsErrorCode;
export declare function invokeOpenAIV1RealtimeSessions(input?: OpenAIV1RealtimeSessionsInvocationRequest): Promise<OpenAIV1RealtimeSessionsResult>;
