/** * Resolved active rules file for escalation and context. * Resolution order: pi-warden.md → AGENTS.md → CLAUDE.md → README.md. */ export interface ResolvedRulesFile { path: string; content: string; source: string; } /** Token-aware truncation: extract heading blocks, cap at maxTokens (1 token ≈ 4 chars). */ export declare function extractRules(content: string, maxTokens?: number): string; /** Resolve the active rules file. Returns the first existing file, or null. Content is redacted before it leaves this machine. */ export declare function resolveRulesFile(cwd: string): ResolvedRulesFile | null; /** Returns missing status and the fallback source if pi-warden.md is absent. */ export declare function checkPiWardenMissing(cwd: string): { missing: boolean; fallbackSource?: string; };