import type { ReplaceSectionResult } from '../../types/spec-format.js';
export type { ReplaceSectionResult };
/**
 * Replace the body of a top-level `## ${sectionName}` section in the given
 * spec.md file with `newBody`. If the section does not yet exist it is
 * appended at the end of the file.
 *
 * Atomic: uses `atomicWriteFile` (tmp + fsync + rename) so the original
 * file is never left in a partial state.
 *
 * @param specPath - Absolute path to the spec.md file.
 * @param sectionName - Exact section name (e.g. "Technical", "Progress").
 * @param newBody - The replacement body (without the heading line).
 * @returns Whether the section was replaced vs appended.
 */
export declare function replaceSectionInSpec(specPath: string, sectionName: string, newBody: string): Promise<ReplaceSectionResult>;
//# sourceMappingURL=replace-section.d.ts.map