import { z } from "zod"; export declare const COMMAND_FRONTMATTER_SCHEMA_VERSION = "1.0.0"; /** * Validates command names: 1–64 chars, lowercase alphanumeric with single * hyphens between segments. Same rules as agent names. */ export declare const CommandNameSchema: z.ZodString; export type CommandName = z.infer; /** * YAML frontmatter extracted from an OpenCode command `.md` file. * Only `description` is required; all other fields are optional overrides. */ export declare const CommandFrontmatterSchema: z.ZodObject<{ description: z.ZodString; agent: z.ZodOptional; model: z.ZodOptional; subtask: z.ZodOptional; namespace: z.ZodOptional; requires: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strict>; export type CommandFrontmatter = z.infer; /** Lenient variant that strips unknown fields instead of rejecting them. */ export declare const CommandFrontmatterSchemaLenient: z.ZodObject<{ description: z.ZodString; agent: z.ZodOptional; model: z.ZodOptional; subtask: z.ZodOptional; namespace: z.ZodOptional; requires: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strip>; export type CommandFrontmatterLenient = z.infer; /** * Informational scan result: which OpenCode template syntax features are * present in the command body. Used for validation warnings, not blocking. */ export declare const CommandTemplateFeaturesSchema: z.ZodObject<{ has_arguments: z.ZodBoolean; has_positional_params: z.ZodBoolean; positional_indices: z.ZodArray; has_bash_injection: z.ZodBoolean; has_file_injection: z.ZodBoolean; has_file_reference: z.ZodBoolean; bash_injection_count: z.ZodNumber; file_injection_count: z.ZodNumber; file_reference_count: z.ZodNumber; }, z.core.$strict>; export type CommandTemplateFeatures = z.infer; /** Lenient variant that strips unknown fields instead of rejecting them. */ export declare const CommandTemplateFeaturesSchemaLenient: z.ZodObject<{ has_arguments: z.ZodBoolean; has_positional_params: z.ZodBoolean; positional_indices: z.ZodArray; has_bash_injection: z.ZodBoolean; has_file_injection: z.ZodBoolean; has_file_reference: z.ZodBoolean; bash_injection_count: z.ZodNumber; file_injection_count: z.ZodNumber; file_reference_count: z.ZodNumber; }, z.core.$strip>; export type CommandTemplateFeaturesLenient = z.infer; /** * Fully parsed command `.md` file: validated frontmatter, raw template * body, and source file path for traceability. */ export declare const CommandFileSchema: z.ZodObject<{ frontmatter: z.ZodObject<{ description: z.ZodString; agent: z.ZodOptional; model: z.ZodOptional; subtask: z.ZodOptional; namespace: z.ZodOptional; requires: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strict>; body: z.ZodString; filePath: z.ZodString; }, z.core.$strict>; export type CommandFile = z.infer; /** Lenient variant that strips unknown fields instead of rejecting them. */ export declare const CommandFileSchemaLenient: z.ZodObject<{ frontmatter: z.ZodObject<{ description: z.ZodString; agent: z.ZodOptional; model: z.ZodOptional; subtask: z.ZodOptional; namespace: z.ZodOptional; requires: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strip>; body: z.ZodString; filePath: z.ZodString; }, z.core.$strip>; export type CommandFileLenient = z.infer; //# sourceMappingURL=command-frontmatter.schema.d.ts.map