export type ToolHandler = (args: TArgs) => Promise; export declare function withErrorHandling(toolName: string, handler: ToolHandler): ToolHandler; export declare function safeExecute(fn: () => T | Promise, context?: string): Promise;