import { type DecisionJob } from './job-contract.js'; export type JobScope = DecisionJob['scope']; export interface JobSnapshot { revision: number; job: DecisionJob; deleted: boolean; legalHold?: boolean; } export declare class JobConflictError extends Error { } export interface JobStore { acquire(job: DecisionJob): Promise<{ owner: boolean; snapshot: JobSnapshot; }>; read(scope: JobScope, id: string): Promise; compareAndSwap(previous: JobSnapshot, next: JobSnapshot): Promise; } /** Collapse only identical, undispatched caller item IDs; never merge mismatched pins. */ export declare function canonicalizeInitialJob(job: DecisionJob): DecisionJob; export declare class MemoryJobStore implements JobStore { private readonly records; acquire(job: DecisionJob): Promise<{ owner: boolean; snapshot: JobSnapshot; }>; read(scope: JobScope, id: string): Promise; compareAndSwap(previous: JobSnapshot, next: JobSnapshot): Promise; } /** Append-only, immutable revision journal. Link publication is atomic across processes on one local filesystem. */ export declare class FileJobStore implements JobStore { private readonly directory; private readonly externallyDeleted?; constructor(directory: string, externallyDeleted?: ((scope: JobScope, id: string) => Promise) | undefined); acquire(job: DecisionJob): Promise<{ owner: boolean; snapshot: JobSnapshot; }>; read(scope: JobScope, id: string): Promise; compareAndSwap(previous: JobSnapshot, next: JobSnapshot): Promise; /** Host-only quota scan. Validate every live journal; corrupted records fail admission closed. */ listSnapshots(): Promise; /** Host-only D10 eraser: call after lifecycle tombstone and authorized job deletion. */ purgeDeleted(scope: JobScope, id: string): Promise; private ensureDirectory; private marker; private isDeleted; private hasMarker; private prefix; private publish; } //# sourceMappingURL=job-store.d.ts.map