/** * Zod Validation Helpers * Provides utilities for validating tool parameters with Zod schemas */ import { z } from 'zod'; /** * Result of parameter validation */ export type ValidationResult = { success: true; data: T; } | { success: false; error: any; }; /** * Validates parameters against a Zod schema * Returns validated data or formatted error response */ export declare function validateParams(params: unknown, schema: T, toolName: string): ValidationResult>; /** * Helper to create tool definitions with Zod schemas * Automatically generates JSON Schema for MCP ListTools response */ export declare function createTool(description: string, zodSchema: T, handler: (args: z.infer, abortSignal?: AbortSignal) => Promise): { description: string; zodSchema: T; inputSchema: import("zod-to-json-schema").JsonSchema7Type & { $schema?: string | undefined; definitions?: { [key: string]: import("zod-to-json-schema").JsonSchema7Type; } | undefined; }; handler: (args: z.infer, abortSignal?: AbortSignal) => Promise; }; //# sourceMappingURL=validation-helpers.d.ts.map