export declare const OPENAI_V1_CONTAINERS_ENDPOINT: "/v1/containers";
export declare const DEFAULT_OPENAI_V1_CONTAINERS_BASE_URL: "https://api.openai.com";
export type OpenAIV1ContainersMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1ContainersBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1ContainersErrorCode = "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 OpenAIV1ContainersGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1ContainersRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1ContainersAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1ContainersRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_CONTAINERS_ENDPOINT;
    operation: string;
    method: OpenAIV1ContainersMethod;
    url: string;
    pathSuffix: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1ContainersRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1ContainersProviderCaller = (envelope: OpenAIV1ContainersRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1ContainersInvocationRequest = {
    operation?: string;
    method?: OpenAIV1ContainersMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    baseUrl?: string;
    auth?: OpenAIV1ContainersAuthEnvelope;
    runtime?: OpenAIV1ContainersRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1ContainersGate;
    governance?: OpenAIV1ContainersGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1ContainersProviderCaller;
};
export type OpenAIV1ContainersResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_CONTAINERS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1ContainersCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_CONTAINERS_ENDPOINT;
    operation: string;
    rawShape: "container-object" | "container-list" | "mock" | "dry-run";
};
export type OpenAIV1ContainersError = {
    code: OpenAIV1ContainersErrorCode;
    message: string;
    boundary: OpenAIV1ContainersBoundary;
    retryable: boolean;
};
export type OpenAIV1ContainersResult = {
    ok: true;
    request: OpenAIV1ContainersRequestEnvelope;
    response: OpenAIV1ContainersResponseEnvelope;
    capability: OpenAIV1ContainersCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1ContainersError;
    request?: OpenAIV1ContainersRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1ContainersProviderError(error: unknown): OpenAIV1ContainersErrorCode;
export declare function invokeOpenAIV1Containers(input?: OpenAIV1ContainersInvocationRequest): Promise<OpenAIV1ContainersResult>;
