/** * log10x_extract_templates — extract the template library from a log corpus. * * Runs the local tenx CLI against inline events, raw text, or a file path, * producing the full set of structural templates (engine-internal templateHash + * template body) with per-template event counts and severity distribution. * * Doubles as a **validator** when optional `expected` assertions are * provided: the tool runs the same pipeline, then checks the output * against min_templates, required_patterns, and forbidden_merges. * Pass/fail per assertion is reported in the output. */ import { z } from 'zod'; import { type StructuredOutput } from '../lib/output-types.js'; export declare const extractTemplatesSchema: { source: z.ZodEnum<["file", "events", "text"]>; path: z.ZodOptional; events: z.ZodOptional>; text: z.ZodOptional; top_n: z.ZodDefault; expected: z.ZodOptional; required_patterns: z.ZodOptional>; forbidden_merges: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { min_templates?: number | undefined; required_patterns?: string[] | undefined; forbidden_merges?: string[][] | undefined; }, { min_templates?: number | undefined; required_patterns?: string[] | undefined; forbidden_merges?: string[][] | undefined; }>>; view: z.ZodOptional>>; }; interface ExtractArgs { source: 'file' | 'events' | 'text'; path?: string; events?: string[]; text?: string; top_n: number; expected?: { min_templates?: number; required_patterns?: string[]; forbidden_merges?: string[][]; }; view?: 'summary'; } export declare function executeExtractTemplates(args: ExtractArgs): Promise; export {};