/**
 * In-Memory Queue Adapter
 *
 * Provides a queue implementation that runs entirely in memory,
 * suitable for development, testing, or single-instance deployments.
 *
 * Features:
 * - Job storage with Map
 * - Async processing with setImmediate
 * - Retry with exponential backoff
 * - Job lifecycle tracking (waiting, active, completed, failed)
 *
 * @packageDocumentation
 */
import type { IQueueAdapter, QueueJobOptions, JobCounts, JobHandler } from './types.js';
/**
 * In-memory queue adapter implementation
 */
export declare class MemoryQueueAdapter implements IQueueAdapter {
    private jobs;
    private handlers;
    private processing;
    private closed;
    private processTimer;
    private readonly name;
    constructor(name: string);
    /**
     * Add a job to the queue
     */
    add<T>(name: string, data: T, options?: QueueJobOptions): Promise<string>;
    /**
     * Register a job handler
     */
    process<T>(handler: JobHandler<T>): void;
    /**
     * Get job counts by status
     */
    getJobCounts(): Promise<JobCounts>;
    /**
     * Close the queue and stop processing
     */
    close(): Promise<void>;
    /**
     * Schedule job processing
     */
    private scheduleProcessing;
    /**
     * Process jobs in the queue
     */
    private processJobs;
    /**
     * Process a single job
     */
    private processJob;
    /**
     * Check if there are waiting jobs
     */
    private hasWaitingJobs;
}
/**
 * Factory function to create a memory queue adapter
 */
export declare function createMemoryQueueAdapter(name: string): IQueueAdapter;
//# sourceMappingURL=memory-queue.d.ts.map