/** * @purpose One replacement rule: regex pattern → replacement string. * @invariant `from` must have the global flag `g`. */ export interface PathNormalizationRule { /** @purpose Regex pattern to match. Must carry the `g` flag. */ from: RegExp; /** @purpose Replacement string. */ to: string; } /** * @purpose Applies replacement rules to file content sequentially. * Rules are applied in array order — from specific to general to avoid conflicts. * @param content Raw file content to normalize. * @param rules Ordered list of replacement rules. * @returns Normalized content with all dev paths replaced by production equivalents. */ export declare function normalize(content: string, rules: readonly PathNormalizationRule[]): string; /** @purpose Path rules for `sync` (ai/directives/): directive and CLI paths only. */ export declare const SYNC_PATH_RULES: readonly PathNormalizationRule[]; /** @purpose Path rules for `sync-skills` (ai/skills/): all rules, including skill path replacement. */ export declare const SYNC_SKILLS_PATH_RULES: readonly PathNormalizationRule[];