import { type ServiceKillResult } from './service-shutdown.js'; import { type ConflictReplayOutput } from './conflict-replay.js'; export type RunMergeBackInput = { readonly projectRoot: string; readonly sessionId: string; readonly dispatchId: string; readonly callerBranch: string; readonly agentBranch: string; readonly onConflict: (replay: ConflictReplayOutput) => Promise<{ readonly ok: boolean; }>; }; export type RunMergeBackResult = { readonly kind: 'merged' | 'noop' | 'replay-exhausted' | 'replay-still-conflict'; readonly attempts: number; readonly serviceKills: ReadonlyArray; }; export declare function runMergeBack(input: RunMergeBackInput): Promise;