export declare const OPENAI_V1_ASSISTANTS_ENDPOINT: "/v1/assistants";
export declare const DEFAULT_OPENAI_V1_ASSISTANTS_BASE_URL: "https://api.openai.com";
export type OpenAIV1AssistantsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1AssistantsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1AssistantsErrorCode = "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 OpenAIV1AssistantsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1AssistantsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1AssistantsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1AssistantsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_ASSISTANTS_ENDPOINT;
    operation: string;
    method: OpenAIV1AssistantsMethod;
    url: string;
    pathSuffix: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1AssistantsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1AssistantsProviderCaller = (envelope: OpenAIV1AssistantsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1AssistantsInvocationRequest = {
    operation?: string;
    method?: OpenAIV1AssistantsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    baseUrl?: string;
    auth?: OpenAIV1AssistantsAuthEnvelope;
    runtime?: OpenAIV1AssistantsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1AssistantsGate;
    governance?: OpenAIV1AssistantsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1AssistantsProviderCaller;
};
export type OpenAIV1AssistantsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_ASSISTANTS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1AssistantsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_ASSISTANTS_ENDPOINT;
    operation: string;
    rawShape: "assistant-object" | "assistant-list" | "mock" | "dry-run";
};
export type OpenAIV1AssistantsError = {
    code: OpenAIV1AssistantsErrorCode;
    message: string;
    boundary: OpenAIV1AssistantsBoundary;
    retryable: boolean;
};
export type OpenAIV1AssistantsResult = {
    ok: true;
    request: OpenAIV1AssistantsRequestEnvelope;
    response: OpenAIV1AssistantsResponseEnvelope;
    capability: OpenAIV1AssistantsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1AssistantsError;
    request?: OpenAIV1AssistantsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1AssistantsProviderError(error: unknown): OpenAIV1AssistantsErrorCode;
export declare function invokeOpenAIV1Assistants(input?: OpenAIV1AssistantsInvocationRequest): Promise<OpenAIV1AssistantsResult>;
