import type { RawMessageStreamEvent } from '@anthropic-ai/sdk/resources'; import type { ProviderEvent } from '../../provider.js'; import type { AnthropicClientLike, ToolDispatcher, ToolCall, ToolResult, TranslateCtx } from './types.js'; export declare function fromArray(arr: T[]): AsyncIterable; export declare function collect(gen: AsyncGenerator): Promise; export declare const SESSION_ID = "sess_loop_test"; export declare const ctx: TranslateCtx; export declare function baseUsage(): { input_tokens: number; output_tokens: number; cache_creation_input_tokens: number; cache_read_input_tokens: number; }; export declare function makeTextStream(text: string, stopReason?: string): RawMessageStreamEvent[]; export declare function makeToolUseStream(toolId: string, toolName: string, inputJson: string): RawMessageStreamEvent[]; export declare function makeMultiToolUseStream(tools: Array<{ id: string; name: string; input: string; }>): RawMessageStreamEvent[]; export declare function makeClient(streamFactory: () => AsyncIterable): AnthropicClientLike; export declare function makeDispatcher(executeFn: (call: ToolCall) => Promise): ToolDispatcher; export declare function makeBatchDispatcher(executeBatchFn: (calls: ToolCall[]) => Promise): ToolDispatcher;