import { HandlerContext } from "../../HandlerContext"; import { GitProject } from "../../project/git/GitProject"; import { Project } from "../../project/Project"; import { EditorOrReviewerParameters } from "../common/params/BaseEditorOrReviewerParameters"; import { BranchCommit, EditMode, PullRequest } from "../edit/editModes"; import { EditResult, ProjectEditor } from "../edit/projectEditor"; /** * Edit a GitHub project using a PR or branch. * Do not attempt any git updates if (a) edited is explicitly set to false by the editor * or (b) edited is undefined and git status is not dirty. If edited is explicitly * set to true by the editor and the git status is not dirty, this is a developer error * which should result in a runtime error. * @param context handler context for this operation * @param p project * @param editor editor to use * @param editMode how to persist the edit * @param parameters to editor * @return EditResult instance that reports as to whether the project was actually edited */ export declare function editRepo

(context: HandlerContext, p: Project, editor: ProjectEditor

, editMode: EditMode, parameters?: P): Promise; export declare function editProjectUsingPullRequest

(context: HandlerContext, gp: GitProject, editor: ProjectEditor

, pr: PullRequest, parameters?: P): Promise; export declare function editProjectUsingBranch

(context: HandlerContext, gp: GitProject, editor: ProjectEditor

, ci: BranchCommit, parameters?: P): Promise; /** * Create a branch (if it doesn't exist), commit with current content and push * @param {GitProject} gp * @param {BranchCommit} ci */ export declare function createAndPushBranch(gp: GitProject, ci: BranchCommit): Promise; /** * Raise a PR from the current state of the project * @param {GitProject} gp * @param {PullRequest} pr */ export declare function raisePr(gp: GitProject, pr: PullRequest): Promise; //# sourceMappingURL=editorUtils.d.ts.map