import type { QueueConfig, QueueProvider } from "./types"; /** * Create a queue provider instance. * * @example * ```ts * // Auto-detect from environment * const queue = await createQueue(); * * // Explicit QStash * const queue = await createQueue({ * provider: "qstash", * callbackBaseUrl: "https://api.nebutra.com", * }); * * // Explicit BullMQ * const queue = await createQueue({ * provider: "bullmq", * redisUrl: "redis://localhost:6379", * }); * ``` */ export declare function createQueue(config?: QueueConfig): Promise; /** * Get or create the default (singleton) queue provider. * Uses lazy initialisation so import-time side effects are avoided. */ export declare function getQueue(): Promise; /** * Replace the default queue provider (useful in tests). */ export declare function setQueue(provider: QueueProvider): void; /** * Gracefully shut down the default queue provider. */ export declare function closeQueue(): Promise; import type { JobOptions, JobPayload } from "./types"; /** * Build a `JobPayload` with auto-generated ID and timestamp. */ export declare function createJob(queue: string, type: string, data: Record, options?: JobOptions): JobPayload; //# sourceMappingURL=factory.d.ts.map