/** * Lex YAML Configuration Schema * * Zod schema with TypeScript type exports for lex.yaml configuration file. * Defines the structure for instruction generation settings. */ import { z } from "zod"; /** * Projections configuration schema */ export declare const ProjectionsSchema: z.ZodObject<{ copilot: z.ZodDefault; cursor: z.ZodDefault; }, z.core.$strip>; export type Projections = z.infer; /** * Instructions configuration schema */ export declare const InstructionsSchema: z.ZodObject<{ canonical: z.ZodDefault; projections: z.ZodOptional; cursor: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>; export type Instructions = z.infer; /** * LexYaml schema - Root configuration for lex.yaml * * @property version - Schema version (must be 1) * @property instructions - Optional instructions generation configuration */ export declare const LexYamlSchema: z.ZodObject<{ version: z.ZodLiteral<1>; instructions: z.ZodOptional; projections: z.ZodOptional; cursor: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type LexYaml = z.infer; /** * Parse and validate a LexYaml configuration object * * @param data - Raw data to validate * @returns Validated LexYaml configuration * @throws {z.ZodError} If validation fails * * @example * ```typescript * const config = parseLexYaml({ * version: 1, * instructions: { * canonical: '.smartergpt/instructions/lex.md', * projections: { * copilot: true, * cursor: true * } * } * }); * ``` */ export declare function parseLexYaml(data: unknown): LexYaml; /** * Validate a LexYaml configuration object (safe parse) * * @param data - Raw data to validate * @returns Validation result with success flag * * @example * ```typescript * const result = validateLexYaml(rawData); * if (result.success) { * console.log("Valid config:", result.data); * } else { * console.error("Validation errors:", result.error); * } * ``` */ export declare function validateLexYaml(data: unknown): { success: true; data: LexYaml; } | { success: false; error: z.ZodError; };