import { DequeueLoopConfig } from './types.js'; declare const QueueType: { readonly AUTODETECT: "AUTODETECT"; readonly IN_MEMORY: "IN_MEMORY"; readonly PERSISTENT: "PERSISTENT"; }; declare class Queue { private queue; startDequeueLoop: (config: DequeueLoopConfig) => Promise; constructor(queueName: string, { queueType }?: { queueType?: string | undefined; }); enqueue(item: unknown): void; /** Cumulative ack: delete every leased item with seq <= uptoSeq. */ confirm(uptoSeq: number): void; /** Reset the lease cursor so unconfirmed items are re-handed (resend). */ rewind(): void; /** Count of enqueued-but-unconfirmed items (drives the unsaved warning). */ unconfirmedCount(): Promise | number; /** * This function starts a loop to continually * dequeue items and process them appropriately * based on provided functions. */ private _startDequeueLoop; } export { Queue, QueueType };