export declare const OPENAI_V1_EMBEDDINGS_ENDPOINT: "/v1/embeddings";
export declare const DEFAULT_OPENAI_V1_EMBEDDINGS_BASE_URL: "https://api.openai.com";
export type OpenAIV1EmbeddingsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1EmbeddingsErrorCode = "MISSING_BODY" | "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 OpenAIV1EmbeddingsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1EmbeddingsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1EmbeddingsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1EmbeddingsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_EMBEDDINGS_ENDPOINT;
    operation: "create-embedding";
    method: "POST";
    url: string;
    headers: Readonly<Record<string, string>>;
    body: unknown;
    runtime: Required<OpenAIV1EmbeddingsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1EmbeddingsProviderCaller = (envelope: OpenAIV1EmbeddingsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1EmbeddingsInvocationRequest = {
    body?: unknown;
    baseUrl?: string;
    headers?: Readonly<Record<string, string | undefined>>;
    auth?: OpenAIV1EmbeddingsAuthEnvelope;
    runtime?: OpenAIV1EmbeddingsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1EmbeddingsGate;
    governance?: OpenAIV1EmbeddingsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1EmbeddingsProviderCaller;
};
export type OpenAIV1EmbeddingsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_EMBEDDINGS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1EmbeddingsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_EMBEDDINGS_ENDPOINT;
    operation: "create-embedding";
    rawShape: "embedding-list" | "embedding-object" | "mock" | "dry-run";
};
export type OpenAIV1EmbeddingsError = {
    code: OpenAIV1EmbeddingsErrorCode;
    message: string;
    boundary: OpenAIV1EmbeddingsBoundary;
    retryable: boolean;
};
export type OpenAIV1EmbeddingsResult = {
    ok: true;
    request: OpenAIV1EmbeddingsRequestEnvelope;
    response: OpenAIV1EmbeddingsResponseEnvelope;
    capability: OpenAIV1EmbeddingsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1EmbeddingsError;
    request?: OpenAIV1EmbeddingsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1EmbeddingsProviderError(error: unknown): OpenAIV1EmbeddingsErrorCode;
export declare function invokeOpenAIV1Embeddings(input?: OpenAIV1EmbeddingsInvocationRequest): Promise<OpenAIV1EmbeddingsResult>;
