/** * @fileoverview Reusable Zod shapes for Obsidian tool definitions. * Target/Section/PatchOptions/ContentType are referenced across multiple tools; * keeping them here prevents drift in the discriminator and field descriptions. * @module mcp-server/tools/definitions/_shared/schemas */ import { z } from '@cyanheads/mcp-ts-core'; /** Where a note lives — vault path, the active file, or a periodic note. */ export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"path">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"active">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"periodic">; period: z.ZodEnum<{ daily: "daily"; monthly: "monthly"; quarterly: "quarterly"; weekly: "weekly"; yearly: "yearly"; }>; date: z.ZodOptional; }, z.core.$strip>], "type">; /** Sub-document target inside a note. */ export declare const SectionSchema: z.ZodObject<{ type: z.ZodEnum<{ block: "block"; frontmatter: "frontmatter"; heading: "heading"; }>; target: z.ZodString; }, z.core.$strip>; export declare const PatchOptionsSchema: z.ZodOptional; applyIfContentPreexists: z.ZodDefault; trimTargetWhitespace: z.ZodDefault; }, z.core.$strip>>; export declare const ContentTypeSchema: z.ZodDefault>; export type ToolTarget = z.infer; export type ToolSection = z.infer; //# sourceMappingURL=schemas.d.ts.map