import type { EmailQueue } from "./index.mjs"; export interface PgBossLike { send: (name: string, data: unknown, opts?: { startAfter?: Date; singletonKey?: string; }) => Promise; fetch?: (name: string, limit?: number) => Promise | null>; complete?: (id: string) => Promise; fail?: (id: string, error?: unknown) => Promise; getQueueSize?: (name: string) => Promise; } export interface PgBossQueueOptions { boss: PgBossLike; name?: string; } export declare function pgBossQueue(options: PgBossQueueOptions): EmailQueue; export default pgBossQueue;