/** * @fileoverview Zod schema for skill config.json validation * @module @skillsmith/core/services/skill-config-schema * @see SMI-3870: Config.json Schema Validation * * Validates config.json files fetched during skill installation. * v1 uses .passthrough() — logs unknown keys as warnings but does not reject. */ import { z } from 'zod'; /** * Schema for skill config.json files. * v1: passthrough mode — unknown keys logged as warnings, not rejected. * Switch to .strict() after publishing the schema spec. */ export declare const SkillConfigSchema: z.ZodObject<{ displayName: z.ZodOptional; version: z.ZodOptional; presets: z.ZodOptional>>; settings: z.ZodOptional>>; mcpServers: z.ZodOptional>; minClaudeCodeVersion: z.ZodOptional; }, z.core.$loose>; export type SkillConfig = z.infer; export interface ConfigValidationResult { valid: boolean; errors: string[]; warnings: string[]; /** Sanitized config (only if valid) */ config?: SkillConfig; } /** * Validate a config.json string against the skill config schema. * Returns validation result with errors and warnings for unknown keys. */ export declare function validateSkillConfig(content: string): ConfigValidationResult; //# sourceMappingURL=skill-config-schema.d.ts.map