import type { Job } from '../../packages/workers/src/index.js';
export type AdvancedEmailJobPayload = {
    to: string;
    subject?: string;
    body?: string;
    template?: string;
    templateData?: Record<string, unknown>;
    uniqueId?: string;
    uniqueVia?: string;
    deduplication?: Record<string, unknown> | null;
    timestamp?: number;
    attempts?: number;
};
export declare const AdvancEmailWorker: {
    processOne: (queueName?: string, driverName?: string) => Promise<boolean>;
    processAll: (queueName?: string, driverName?: string) => Promise<number>;
    runOnce: (opts?: {
        queueName?: string;
        driverName?: string;
        maxItems?: number;
        maxDurationMs?: number;
    }) => Promise<number>;
    startWorker: (opts?: {
        queueName?: string;
        driverName?: string;
        signal?: AbortSignal;
        maxDurationMs?: number;
    }) => Promise<number>;
    __zintrustQueueWorkerMeta?: Readonly<{
        kindLabel: string;
        defaultQueueName: string;
        maxAttempts: number;
    }>;
};
export declare const AdvancEmailQueue: {
    add(payload: AdvancedEmailJobPayload, queueName?: string, options?: Record<string, unknown>): Promise<string>;
    processOne(queueName?: string): Promise<boolean>;
    processAll(queueName?: string): Promise<number>;
    start(queueName?: string): Promise<void>;
};
export { AdvancEmailWorker as AdvancEmailWorkerInstance };
export default function advancedEmailJobProcessor(job: Job<AdvancedEmailJobPayload>): Promise<void>;
export declare const ZinTrustProcessor: (job: Job<AdvancedEmailJobPayload>) => Promise<void>;
//# sourceMappingURL=AdvancEmailWorker.d.ts.map