/** * Shared helpers for tool definitions. */ import { z } from 'zod'; import type { LinkFortyClient } from '../client.js'; export interface ToolDefinition { name: string; description: string; inputSchema: Record; handler: (args: any, client: LinkFortyClient) => Promise; } /** * Creates a tool definition from a Zod schema. The schema is converted to * JSON Schema for the MCP tool listing, and used to validate inputs at call time. */ export declare function defineTool(opts: { name: string; description: string; schema: TSchema; handler: (args: z.infer, client: LinkFortyClient) => Promise; }): ToolDefinition; /** * Format any value as a JSON string suitable for an MCP text content block. */ export declare function asText(value: unknown): string; //# sourceMappingURL=shared.d.ts.map