import { type MethodContext } from '../daemon/methods.js'; import { type ToolDefinition, type ToolResult } from './protocol.js'; export type ToolHandlerCtx = MethodContext; export type ToolHandler = (args: unknown, ctx: ToolHandlerCtx) => Promise; export interface Tool { definition: ToolDefinition; handler: ToolHandler; } export declare const TOOLS: readonly Tool[]; export declare function findTool(name: string): Tool | undefined; export declare class ToolError extends Error { readonly code: number; readonly data: unknown; constructor(code: number, message: string, data?: unknown); } //# sourceMappingURL=tools.d.ts.map