import type { Document } from "yaml";
import type { Result } from "../result/result.js";
import type { File } from "../fs-stage/file.js";
import type { ProjectSource } from "./project.js";
import type { ReadYamlFailureReason } from "./read-yaml.js";
export declare function modifyProjectYaml(project: ProjectSource, path: string, modify: (document: Document.Parsed) => Document.Parsed): Promise<Result<ReadYamlFailureReason, File>>;
