/** * Parse hook definitions and quality gate rules from markdown files * (CLAUDE.md, IRON-RAIN.md, agents.md, README.md, etc.). * * Supports two formats: * * 1. Fenced code blocks with `hooks` language tag: * ```hooks * beforeDispatch: bun run lint * afterDispatch: bun run typecheck * ``` * * 2. ## Hooks / ## Quality Gates sections with key: value lines. * * Also extracts quality gate directives (lint commands, typecheck commands, * test commands) from markdown content. */ import type { HookEvent } from "../plugins/hooks.js"; export interface ParsedHook { event: HookEvent; command: string; } export interface QualityGate { type: "lint" | "typecheck" | "test" | "format" | "custom"; command: string; /** When to run: beforeDispatch, afterDispatch, onCommit, etc. */ trigger: HookEvent; label: string; } export interface MarkdownHookResult { hooks: ParsedHook[]; qualityGates: QualityGate[]; } /** * Parse hooks and quality gates from a single markdown file's content. */ export declare function parseMarkdownHooks(content: string): MarkdownHookResult; /** * Parse hooks from all markdown rule contents (multiple files). */ export declare function parseAllMarkdownHooks(ruleContents: string[]): MarkdownHookResult; //# sourceMappingURL=hook-parser.d.ts.map