import type { ConsolidationJob, ConsolidationJobState } from "./types.js";
export type ConsolidationJobErrorCode = "invalid-transition";
export declare class ConsolidationJobError extends Error {
    readonly code: ConsolidationJobErrorCode;
    readonly from: ConsolidationJobState;
    readonly to: ConsolidationJobState;
    constructor(code: ConsolidationJobErrorCode, from: ConsolidationJobState, to: ConsolidationJobState);
}
export declare function buildConsolidationJob(id: string, startedAtMs: number): ConsolidationJob;
export declare function transitionJob(job: ConsolidationJob, to: ConsolidationJobState, patch?: Partial<Pick<ConsolidationJob, "result" | "completedAt" | "error">>): ConsolidationJob;
//# sourceMappingURL=job.d.ts.map