export declare const OPENAI_V1_VECTOR_STORES_ENDPOINT: "/v1/vector_stores";
export type OpenAIV1VectorStoresMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1VectorStoresGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1VectorStoresRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type OpenAIV1VectorStoresAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1VectorStoresRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_VECTOR_STORES_ENDPOINT;
    operation: string;
    method: OpenAIV1VectorStoresMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1VectorStoresRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1VectorStoresProviderCaller = (envelope: OpenAIV1VectorStoresRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1VectorStoresInvocationRequest = {
    operation?: string;
    method?: OpenAIV1VectorStoresMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: OpenAIV1VectorStoresAuthEnvelope;
    runtime?: OpenAIV1VectorStoresRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1VectorStoresGate;
    governance?: OpenAIV1VectorStoresGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1VectorStoresProviderCaller;
};
export type OpenAIV1VectorStoresErrorCode = "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 OpenAIV1VectorStoresError = {
    code: OpenAIV1VectorStoresErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type OpenAIV1VectorStoresProviderResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_VECTOR_STORES_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1VectorStoresInvocationResult = {
    ok: true;
    request: OpenAIV1VectorStoresRequestEnvelope;
    response: OpenAIV1VectorStoresProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1VectorStoresError;
    request?: OpenAIV1VectorStoresRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1VectorStoresProviderError(error: unknown): OpenAIV1VectorStoresErrorCode;
export declare function invokeOpenAIV1VectorStores(input?: OpenAIV1VectorStoresInvocationRequest): Promise<OpenAIV1VectorStoresInvocationResult>;
