/** * Keywords Schema - Keyword trigger definitions for zero-bloat instruction loading * * Keywords allow AI tools to load scoped context on-demand instead of * relying on bloated instruction files that are always loaded. * * @see Epic #499 — Keyword-Driven Context Loading */ import { z } from "zod"; /** * Schema for a single keyword definition */ export declare const KeywordDefinitionSchema: z.ZodObject<{ description: z.ZodString; recall: z.ZodOptional; policy_modules: z.ZodOptional>; policy_check: z.ZodOptional; invariant: z.ZodOptional; notes: z.ZodOptional; }, z.core.$strip>; /** * Schema for the keywords.yml file */ export declare const KeywordsConfigSchema: z.ZodObject<{ version: z.ZodLiteral<1>; keywords: z.ZodRecord; policy_modules: z.ZodOptional>; policy_check: z.ZodOptional; invariant: z.ZodOptional; notes: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * TypeScript types inferred from schemas */ export type KeywordDefinition = z.infer; export type KeywordsConfig = z.infer; /** * Parse and validate a keywords config object * @throws ZodError if validation fails */ export declare function parseKeywordsConfig(data: unknown): KeywordsConfig; /** * Safely parse a keywords config, returning success/error result */ export declare function validateKeywordsConfig(data: unknown): z.ZodSafeParseResult<{ version: 1; keywords: Record; }>; /** * Get a single keyword definition by name */ export declare function getKeyword(config: KeywordsConfig, keyword: string): KeywordDefinition | undefined; /** * List all available keyword names */ export declare function listKeywords(config: KeywordsConfig): string[];