export type JsonDurableQueueEntryPaths = { jsonPath: string; deliveredPath: string; }; export type JsonDurableQueueReadResult = { entry: T; migrated?: boolean; }; export type JsonDurableQueueLoadOptions = { queueDir: string; tempPrefix: string; read?: (entry: T, filePath: string) => Promise>; cleanupTmpMaxAgeMs?: number; maxBytes?: number; }; export declare const DEFAULT_JSON_DURABLE_QUEUE_ENTRY_MAX_BYTES: number; export declare function unlinkBestEffort(filePath: string): Promise; export declare function jsonDurableQueueEntryExists(filePath: string): Promise; export declare function resolveJsonDurableQueueEntryPaths(queueDir: string, id: string): JsonDurableQueueEntryPaths; export declare function ensureJsonDurableQueueDirs(params: { queueDir: string; failedDir: string; }): Promise; export declare function writeJsonDurableQueueEntry(params: { filePath: string; entry: unknown; tempPrefix: string; }): Promise; export declare function readJsonDurableQueueEntry(filePath: string, options?: { maxBytes?: number; }): Promise; export declare function ackJsonDurableQueueEntry(paths: JsonDurableQueueEntryPaths): Promise; export declare function loadJsonDurableQueueEntry(params: { paths: JsonDurableQueueEntryPaths; tempPrefix: string; read?: (entry: T, filePath: string) => Promise>; maxBytes?: number; }): Promise; export declare function loadPendingJsonDurableQueueEntries(options: JsonDurableQueueLoadOptions): Promise; export declare function moveJsonDurableQueueEntryToFailed(params: { queueDir: string; failedDir: string; id: string; }): Promise; //# sourceMappingURL=json-durable-queue.d.ts.map