export declare const ANTHROPIC_V1_MESSAGES_BATCHES_ENDPOINT: "/v1/messages/batches";
export declare const DEFAULT_ANTHROPIC_V1_MESSAGES_BATCHES_BASE_URL: "https://api.anthropic.com";
export declare const DEFAULT_ANTHROPIC_VERSION: "2023-06-01";
export type AnthropicV1MessagesBatchesOperation = "create" | "list" | "retrieve" | "cancel" | "results";
export type AnthropicV1MessagesBatchesMethod = "GET" | "POST";
export type AnthropicV1MessagesBatchesBoundary = "input" | "contract" | "governance" | "provider" | "timeout" | "response";
export type AnthropicV1MessagesBatchesErrorCode = "MISSING_REQUEST" | "MISSING_OPERATION" | "MISSING_BATCH_ID" | "MISSING_REQUEST_BODY" | "MISSING_AUTH_TOKEN" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "TRANSPORT_UNAVAILABLE" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "PROVIDER_ERROR" | "RESPONSE_FORMAT_DRIFT";
export type AnthropicV1MessagesBatchesGate = {
    accepted: boolean;
    reason?: string;
};
export type AnthropicV1MessagesBatchesRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
};
export type AnthropicV1MessagesBatchesBody = Readonly<Record<string, unknown>>;
export type AnthropicV1MessagesBatchesProviderEnvelope = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_MESSAGES_BATCHES_ENDPOINT;
    operation: AnthropicV1MessagesBatchesOperation;
    method: AnthropicV1MessagesBatchesMethod;
    url: string;
    headers: Readonly<Record<string, string>>;
    body?: AnthropicV1MessagesBatchesBody;
    timeoutMs: number;
    dryRun: boolean;
    providerCallPlanned: boolean;
    runtime: AnthropicV1MessagesBatchesRuntimeContext;
};
export type AnthropicV1MessagesBatchesProviderResult = {
    statusCode: number;
    body: unknown;
    headers?: Readonly<Record<string, string>>;
};
export type AnthropicV1MessagesBatchesTransport = (envelope: AnthropicV1MessagesBatchesProviderEnvelope) => Promise<AnthropicV1MessagesBatchesProviderResult> | AnthropicV1MessagesBatchesProviderResult;
export type AnthropicV1MessagesBatchesRequest = {
    operation?: AnthropicV1MessagesBatchesOperation;
    batchId?: string;
    baseUrl?: string;
    apiKey?: string;
    anthropicVersion?: string;
    body?: AnthropicV1MessagesBatchesBody;
    timeoutMs?: number;
    dryRun?: boolean;
    runtime?: AnthropicV1MessagesBatchesRuntimeContext;
    contract?: AnthropicV1MessagesBatchesGate;
    governance?: AnthropicV1MessagesBatchesGate;
    transport?: AnthropicV1MessagesBatchesTransport;
};
export type AnthropicV1MessagesBatchesResponseEnvelope = {
    kind: "dry-run" | "provider";
    statusCode?: number;
    body: unknown;
    headers?: Readonly<Record<string, string>>;
};
export type AnthropicV1MessagesBatchesCapabilitySignal = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_MESSAGES_BATCHES_ENDPOINT;
    operation: AnthropicV1MessagesBatchesOperation;
    rawShape: "batch-object" | "batch-results" | "dry-run";
};
export type AnthropicV1MessagesBatchesError = {
    code: AnthropicV1MessagesBatchesErrorCode;
    message: string;
    boundary: AnthropicV1MessagesBatchesBoundary;
    statusCode?: number;
};
export type AnthropicV1MessagesBatchesResult = {
    ok: true;
    envelope: AnthropicV1MessagesBatchesProviderEnvelope;
    response: AnthropicV1MessagesBatchesResponseEnvelope;
    capability: AnthropicV1MessagesBatchesCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: AnthropicV1MessagesBatchesError;
    envelope?: AnthropicV1MessagesBatchesProviderEnvelope;
    events: readonly string[];
};
export declare function invokeAnthropicV1MessagesBatches(request?: AnthropicV1MessagesBatchesRequest): Promise<AnthropicV1MessagesBatchesResult>;
