import { Model, ModelFinish, ModelReply, Msg } from "./agent-runtime.js"; //#region src/agent-models.d.ts export type AnthropicBlock = { type: "text"; text: string; } | { type: "tool_use"; id: string; name: string; input: unknown; } | { type: "tool_result"; tool_use_id: string; content: string; is_error?: boolean; }; export type AnthropicMessage = { role: "user" | "assistant"; content: string | AnthropicBlock[]; }; export declare function renderNote(m: Extract): string; export declare function toAnthropicMessages(msgs: Msg[]): AnthropicMessage[]; export type AnthropicResponseBlock = { type: string; text?: string; id?: string; name?: string; input?: unknown; }; export declare function fromAnthropicContent(content: AnthropicResponseBlock[]): ModelReply; export type AnthropicRequest = { model: string; max_tokens: number; messages: unknown[]; thinking?: unknown; tools?: unknown[]; system?: unknown; }; export type AnthropicStreamEvent = { type: string; delta?: unknown; }; export type AnthropicStream = AsyncIterable & { finalMessage(): Promise<{ content: AnthropicResponseBlock[]; stop_reason?: string | null; }>; }; export type AnthropicClient = { messages: { stream(body: AnthropicRequest): AnthropicStream; }; }; export type AnthropicCtor = new (opts?: { apiKey?: string; }) => AnthropicClient; export type AnthropicOptions = { model?: string; apiKey?: string; system?: string; maxTokens?: number; thinking?: boolean; client?: AnthropicClient; }; export declare function loadAnthropicSdk(importSdk?: () => Promise): Promise; export declare function anthropic(opts?: AnthropicOptions): Model; export declare function finishFromStopReason(stopReason: string | null | undefined): ModelFinish | undefined; //#endregion