/** * Zod schemas for markmv auto-exposed methods * * Single source of truth for input/output validation and JSON Schema derivation. MCP tool * definitions, REST route schemas, OpenAPI spec, and TypeScript types are all derived from these * schemas. */ import * as z from "zod"; import type { MoveOperationOptions, OperationResult } from "../types/operations.js"; declare const MoveOptionsSchema: z.ZodObject<{ dryRun: z.ZodOptional; verbose: z.ZodOptional; force: z.ZodOptional; createDirectories: z.ZodOptional; obsidian: z.ZodOptional; discoverySeeds: z.ZodOptional>; }, z.core.$strict>; declare const OperationResultSchema: z.ZodObject<{ success: z.ZodBoolean; modifiedFiles: z.ZodArray; createdFiles: z.ZodArray; deletedFiles: z.ZodArray; errors: z.ZodArray; warnings: z.ZodArray; changes: z.ZodArray; filePath: z.ZodString; oldValue: z.ZodOptional; newValue: z.ZodOptional; line: z.ZodOptional; }, z.core.$strip>>; parseFailures: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strict>; /** Convert a Zod-parsed MoveOptionsSchema value to MoveOperationOptions */ export declare function toMoveOptions(data: z.infer): MoveOperationOptions; /** Convert a Zod-parsed OperationResultSchema value to OperationResult */ export declare function toOperationResult(data: z.infer): OperationResult; /** Derive a tool/route description from a method's input schema's own .meta({ description }) */ export declare function getDescription(schema: z.ZodType): string; /** Maps camelCase method names to their input/output Zod schemas */ export declare const methodSchemas: { readonly moveFile: { readonly input: z.ZodObject<{ sourcePath: z.ZodString; destinationPath: z.ZodString; options: z.ZodOptional; verbose: z.ZodOptional; force: z.ZodOptional; createDirectories: z.ZodOptional; obsidian: z.ZodOptional; discoverySeeds: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; readonly output: z.ZodObject<{ success: z.ZodBoolean; modifiedFiles: z.ZodArray; createdFiles: z.ZodArray; deletedFiles: z.ZodArray; errors: z.ZodArray; warnings: z.ZodArray; changes: z.ZodArray; filePath: z.ZodString; oldValue: z.ZodOptional; newValue: z.ZodOptional; line: z.ZodOptional; }, z.core.$strip>>; parseFailures: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strict>; }; readonly moveFiles: { readonly input: z.ZodObject<{ moves: z.ZodArray>; options: z.ZodOptional; verbose: z.ZodOptional; force: z.ZodOptional; createDirectories: z.ZodOptional; obsidian: z.ZodOptional; discoverySeeds: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; readonly output: z.ZodObject<{ success: z.ZodBoolean; modifiedFiles: z.ZodArray; createdFiles: z.ZodArray; deletedFiles: z.ZodArray; errors: z.ZodArray; warnings: z.ZodArray; changes: z.ZodArray; filePath: z.ZodString; oldValue: z.ZodOptional; newValue: z.ZodOptional; line: z.ZodOptional; }, z.core.$strip>>; parseFailures: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strict>; }; readonly validateOperation: { readonly input: z.ZodObject<{ result: z.ZodObject<{ success: z.ZodBoolean; modifiedFiles: z.ZodArray; createdFiles: z.ZodArray; deletedFiles: z.ZodArray; errors: z.ZodArray; warnings: z.ZodArray; changes: z.ZodArray; filePath: z.ZodString; oldValue: z.ZodOptional; newValue: z.ZodOptional; line: z.ZodOptional; }, z.core.$strip>>; parseFailures: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strict>; }, z.core.$strict>; readonly output: z.ZodObject<{ valid: z.ZodBoolean; brokenLinks: z.ZodNumber; errors: z.ZodArray; }, z.core.$strict>; }; readonly testAutoExposure: { readonly input: z.ZodObject<{ input: z.ZodString; }, z.core.$strict>; readonly output: z.ZodObject<{ message: z.ZodString; timestamp: z.ZodString; success: z.ZodBoolean; }, z.core.$strict>; }; }; export type MethodName = keyof typeof methodSchemas; /** * Type guard for method names obtained from runtime key iteration (Object.keys/Object.entries), * whose TypeScript signatures only produce `string`. */ export declare function isMethodName(name: string): name is MethodName; export {}; //# sourceMappingURL=index.d.ts.map