import type { RuntimeUsage } from "../../../src/provider/shared/index.js"; import { type AnthropicProviderToolNameRegistry } from "./anthropic-native-content.js"; export { AnthropicServerToolResultError, parseAnthropicServerToolResult, } from "./anthropic-native-content.js"; export type AnthropicStreamCompletion = { finishReason: string | { unified: string; raw: string; } | null; rawStopReason?: string; rawContent: unknown[]; usage?: RuntimeUsage; }; type AnthropicStreamOptions = { clientToolUseTrailingUsageGraceMs?: number; clientToolUseTrailingUsageTimeoutMode?: "cancel" | "drain"; clientToolUseTrailingUsageDrainTimeoutMs?: number; allowPostTerminalUsage?: boolean; providerLabel?: string; providerToolNamesById?: AnthropicProviderToolNameRegistry; onCompletion?: (completion: AnthropicStreamCompletion) => void; }; export declare const MAX_ANTHROPIC_RETAINED_CONTENT_BYTES = 16777216; export declare const MAX_ANTHROPIC_RETAINED_CONTENT_ITEMS = 8192; /** Add independently billed Anthropic attempts, such as pause_turn continuations. */ export declare function addAnthropicUsage(current: RuntimeUsage | undefined, next: RuntimeUsage | undefined): RuntimeUsage | undefined; export declare function normalizeAnthropicFinishReason(raw: unknown): string | { unified: string; raw: string; } | null; export declare function extractAnthropicUsage(payload: unknown): RuntimeUsage | undefined; export declare function streamAnthropicCompatibleParts(stream: ReadableStream, options?: AnthropicStreamOptions): AsyncIterable; //# sourceMappingURL=anthropic-stream.d.ts.map