import { type RuleFrontmatterDiagnostic } from "./rule-frontmatter-diagnostics.js"; export type Phase0Scenario = "step1" | "step2-3"; export type RuleScenario = Phase0Scenario | "all"; export type RuleSeverity = "must" | "should" | "prefer"; export type RuleDeliveryRole = "test-writer" | "implementer" | "reviewer" | "main"; export type RuleMetadata = { readonly id: string; readonly source?: string; readonly domain?: string; readonly topic?: string; readonly roles: readonly RuleDeliveryRole[]; readonly globs: readonly string[]; readonly scenario: RuleScenario; readonly severity?: RuleSeverity; readonly maxBullets?: number; readonly enforcement?: string; }; export type RuleFrontmatterParseResult = { readonly metadata: RuleMetadata; readonly diagnostics: readonly RuleFrontmatterDiagnostic[]; }; export declare function extractBulletPolicies(markdown: string): string[]; export declare function fallbackRuleMetadata(rulePath: string): RuleMetadata; export declare function parseRuleFrontmatter(rulePath: string, markdown: string): RuleFrontmatterParseResult; export declare function parseRuleMetadata(rulePath: string, markdown: string): RuleMetadata;