import type { WebHookStatus } from "./types/email.type";
import { ESPStandardizedError, StandardError } from "./types/error.type";
type WebHookResponseDataForQD = {
    webHookType: WebHookStatus;
    to: string;
    from?: string;
    subject?: string;
    metaData?: object;
    dump?: string;
    espMessageId: string;
    espRecordType: string;
    espType?: string;
};
type WebHookResponseForQD = {
    success: true;
    status: number;
    data: WebHookResponseDataForQD;
    espData?: any;
} | {
    success: false;
    status: number;
    error: StandardError | ESPStandardizedError;
};
declare function getWebHook(userAgent: string, req: any, logger?: boolean): Promise<WebHookResponseForQD>;
import { getEmailService, EmailServiceSelector } from "./models/emailServiceSelector.js";
import type { EmailPayload, StandardResponse } from "./types/email.type.js";
export { getEmailService, getWebHook, EmailServiceSelector };
export type { EmailPayload, StandardResponse };
