/** * Replace a pattern only in the current milestone section of ROADMAP.md. * * Port of replaceInCurrentMilestone from core.cjs lines 1013-1022. * * Semantics: * • No `` in the content → plain `content.replace(pattern, replacement)`. * • Otherwise → split at the last `` and replace only in the * content AFTER it. * • If the after-slice produces no replacement (pattern not found there), * fall back to replacing inside the last `
...
` block. * This handles the case where the active milestone is itself wrapped in * a `
` block (e.g. collapsed by the user or during a milestone * transition). Earlier shipped-milestone blocks are left untouched because * only the last `
` block is targeted by the fallback. * (Fixes #2641.) */ export declare function replaceInCurrentMilestone(content: string, pattern: string | RegExp, replacement: string): string; /** * Atomic read-modify-write for ROADMAP.md. * * Holds a lockfile across the entire read -> transform -> write cycle. */ export declare function readModifyWriteRoadmapMd(projectDir: string, modifier: (content: string) => string | Promise, workstream?: string): Promise; //# sourceMappingURL=phase-roadmap-mutation.d.ts.map