import type { BatchJobRef, BatchJobState, BatchOutputItem, BatchProvider, BatchProviderCallContext, BatchProviderInfo, BatchSubmitRequest } from '../types/batch.js'; /** Options for the Anthropic batch provider. */ export interface AnthropicBatchProviderOptions { /** Anthropic API key. */ apiKey: string; /** API base URL. Defaults to `https://api.anthropic.com/v1`. */ baseUrl?: string; /** Sent as `anthropic-version`. Defaults to `2023-06-01`. */ version?: string; /** Headers added to every request. */ headers?: Record; /** Replaces the global `fetch`. */ fetch?: typeof fetch; /** Applied to any item that names no model. */ defaultModel?: string; /** * Output token limit for items that set none. Defaults to 1,024, since Anthropic requires one. */ maxTokens?: number; } /** Anthropic Message Batches: half price, 24-hour window. */ export declare class AnthropicBatchProvider implements BatchProvider { private readonly options; /** Always `anthropic`, with its batch limits. */ readonly info: BatchProviderInfo; constructor(options: AnthropicBatchProviderOptions); /** Submits a batch of message requests. */ submit(request: BatchSubmitRequest, context: BatchProviderCallContext): Promise; /** Reads a batch's status and counts. */ poll(ref: BatchJobRef, context: BatchProviderCallContext): Promise; /** Reads a finished batch's results. */ results(ref: BatchJobRef, context: BatchProviderCallContext): Promise; /** Cancels a batch. Items already processed keep their results. */ cancel(ref: BatchJobRef, context: BatchProviderCallContext): Promise; private toState; private toOutputItem; private request; private requestText; private send; }