import type { QueueKey, QueueKeyOnProcess } from "./BackedQueueTypes.ts"; import type { QueueBackendWithTransaction, QueueBackendTransaction } from "./QueueBackendTypes.ts"; /** * A simple in-memory backend store for testing purposes. * @template T The type of items in the queue. */ export declare class QueueBackendMemory implements QueueBackendWithTransaction { private _queueMap; protected readonly _name: string; protected readonly _basePrefix: string; protected _startupTime: number; protected _sessionRandom: number; protected _incrementalId: number; protected _shouldBypassKey: (key: string) => boolean; get prefix(): string; get processingPrefix(): string; constructor(name: string, basePrefix: string, shouldBypass?: (key: string) => boolean, base?: { queueMapBase: Map; startupTime: number; sessionRandom: number; incrementalId: number; }); private _getQueueKey; private _getProcessingKey; getQueuedItem(key: QueueKey): Promise; setQueueItem(key: QueueKey, item: T): Promise; deleteQueueItem(key: QueueKey): Promise; getProcessingItem(key: QueueKeyOnProcess): Promise; setProcessingItem(key: QueueKeyOnProcess, item: T): Promise; deleteProcessingItem(key: QueueKeyOnProcess): Promise; atomic(callback: (store: QueueBackendTransaction) => Promise): Promise; keys(from: string | undefined, to: string | undefined, count?: number | undefined): Promise; getNextQueueKey(): Promise; issueNewQueueKey(): QueueKey; }