export interface RuleEntry { /** Absolute path to the rule file. */ path: string; /** File name without extension (e.g. "experiment-format"). */ name: string; /** Full file content including frontmatter. */ content: string; /** Body text after frontmatter. */ body: string; /** Glob patterns from frontmatter `paths:` field. Empty array = global rule. */ paths: string[]; /** File mtime in ms epoch. */ mtimeMs: number; } /** * Read all markdown files from ~/.cortex/rules/ and return them * partitioned into global (no `paths` frontmatter) and scoped (has `paths`). */ export declare function loadCortexRules(): { global: RuleEntry[]; scoped: RuleEntry[]; }; /** * Given a file path and a list of scoped rules, return the rules whose * `paths` patterns match the file path. */ export declare function resolveScopedRules(filePath: string, scoped: RuleEntry[]): RuleEntry[];