import { c as AgentEngine, N as NeedleWasmEngineOptions, i as AgentToolSchema, e as AgentResponse, A as AgentRunOptions, a as AgentRunResult } from './types-B_BFlPTQ.js'; export { d as AgentExecutedCall, b as AgentOptions, f as AgentTool, g as AgentToolCall, h as AgentToolContext } from './types-B_BFlPTQ.js'; import { T as Tool } from './types-c3u6kU61.js'; export { J as JsonSchema, e as ToolAnnotations, f as ToolContext, b as ToolInvocationResult, a as ToolInvokeOptions, c as ToolPolicy, k as ToolPolicyRegistration, o as ToolSchema } from './types-c3u6kU61.js'; import 'react'; /** Browser client for the official Needle WASM artifacts. Inference stays off the UI thread. */ declare class NeedleWasmEngine implements AgentEngine { #private; constructor(options: NeedleWasmEngineOptions); /** Download and compile the engine/model without initializing a tool session. */ preload(): Promise; initialize(tools: readonly AgentToolSchema[], systemPrompt?: string): Promise; complete(input: string, maxNewTokens?: number): Promise; reset(): Promise; dispose(): void; } /** Execute an Agent function-call loop against a stable snapshot of generic tools. */ declare function runAgentChain(engine: AgentEngine, input: string, tools: readonly Tool[], options?: AgentRunOptions): Promise; export { AgentEngine, AgentResponse, AgentRunOptions, AgentRunResult, AgentToolSchema, NeedleWasmEngine, NeedleWasmEngineOptions, Tool, runAgentChain };