import { Connection } from '@salesforce/core'; export type ClearedStage = { stageId: string; stageName?: string; branchName?: string; }; export type DeleteStageBranchResult = { success: boolean; stageId: string; branchName?: string; clearedStages?: ClearedStage[]; error?: string; }; /** * Removes the branch associated with a pipeline stage, cascading to every upstream (left) stage. * * Branches are configured right-to-left, so a stage can only have a branch once the stage to its * right does. Clearing a branch therefore also clears the branch on every upstream stage to keep * the pipeline in a valid state. Each stage's SourceCodeRepositoryBranchId lookup is cleared; the * branch records themselves are left untouched. */ export declare function deleteStageBranch(connection: Connection, targetStageId: string, stagesToClear: ClearedStage[]): Promise;