import { type JsonSnapshotValue } from "../../../src/provider/shared/index.js"; export type AnthropicProviderToolNameRegistry = Map; export type AnthropicProviderToolUse = { blockType: "server_tool_use" | "mcp_tool_use"; toolCallId: string; toolName: string; input: Record; serverName?: string; }; export type AnthropicServerToolResult = { toolCallId: string; toolName: string; result: unknown; isError?: true; }; export declare class AnthropicServerToolResultError extends Error { readonly name = "AnthropicServerToolResultError"; readonly provider = "anthropic"; readonly code: string; readonly toolCallId: string; readonly toolName: string; readonly detail?: string; constructor(options: { code: string; toolCallId: string; toolName: string; detail?: string; }); } export declare function isAnthropicProviderToolResultBlockType(type: string): boolean; export declare function isAnthropicProviderExecutedContentBlockType(type: unknown): boolean; export declare const MAX_ANTHROPIC_RAW_ASSISTANT_MESSAGES = 6; export declare const MAX_ANTHROPIC_RAW_ASSISTANT_BLOCKS = 4096; export declare const MAX_ANTHROPIC_RAW_ASSISTANT_METADATA_BYTES: number; export declare const MAX_ANTHROPIC_RAW_ASSISTANT_METADATA_DEPTH = 64; export declare const MAX_ANTHROPIC_RAW_ASSISTANT_METADATA_NODES = 65536; export declare function snapshotAnthropicRawAssistantMetadata(value: unknown): JsonSnapshotValue; /** * Validate exact Anthropic assistant content before replaying it from provider * metadata. The records retain their provider wire shape; validation only * proves that every block is supported and provider-tool results correlate. */ export declare function validateAnthropicRawAssistantMessages(value: unknown, providerToolNamesById?: AnthropicProviderToolNameRegistry): Array>>; export declare function parseAnthropicProviderToolUse(value: unknown): AnthropicProviderToolUse | undefined; export declare function parseAnthropicServerToolResult(value: unknown, toolNamesById?: ReadonlyMap): AnthropicServerToolResult | undefined; //# sourceMappingURL=anthropic-native-content.d.ts.map