import { z } from 'zod'; import { T as Tool } from '../../types-Ks98Z0E_.mjs'; /** * WASM Tool Execution * * Execute WebAssembly modules as agent tools in the browser. * Sandboxed execution with capability-based permissions. * UNIQUE to EADK. */ interface WASMToolConfig { /** Tool name */ name: string; /** Tool description */ description: string; /** WASM module (bytes or URL) */ module: ArrayBuffer | string; /** Exported function name to call */ exportName: string; /** Input schema */ inputSchema: z.ZodSchema; /** Output schema */ outputSchema?: z.ZodSchema; /** Allowed capabilities */ capabilities?: WASMCapability[]; /** Memory limit in pages (64KB each) */ memoryPages?: number; /** Execution timeout in ms */ timeoutMs?: number; } type WASMCapability = 'fs_read' | 'fs_write' | 'net_fetch' | 'crypto' | 'time'; /** * Create a tool that executes a WASM module. */ declare function createWASMTool(config: WASMToolConfig): Tool; export { type WASMCapability, type WASMToolConfig, createWASMTool };