import type { MergeJob } from '@pantheon-systems/css-client'; export type GoLiveRejection = { kind: 'stale-review'; jobId?: string; } | { kind: 'already-running'; jobId?: string; } | { kind: 'partial-failure'; failed: number; total: number; details: { documentId: string; path: string; error: string | null; }[]; } | { kind: 'error'; message: string; }; export declare const ALREADY_RUNNING_MESSAGE = "Another go-live for this workstream is already running. Wait for it to finish, then retry."; /** * Both the active-job 409 and the conflicts 409 carry jobId; only the conflicts * one also carries conflictCount — check conflictCount first. */ export declare function classifyRejection(err: unknown, total: number): GoLiveRejection; export declare function classifyJob(job: MergeJob): GoLiveRejection | { kind: 'done'; } | { kind: 'running'; }; export declare function rejectionMessage(r: GoLiveRejection): string;