type EmailDeliveryFailureDetails = { httpStatus: number; postmarkErrorCode?: number; provider: 'postmark'; providerCategory: 'inactiveRecipient' | 'rejected'; }; type EmailDeliveryErrorDetails = EmailDeliveryFailureDetails | { failureCount: number; failures: EmailDeliveryFailureDetails[]; }; export declare class EmailDeliveryError extends Error { readonly details?: EmailDeliveryErrorDetails | undefined; readonly expected: boolean; readonly retryable: boolean; constructor(message: string, details?: EmailDeliveryErrorDetails | undefined, expected?: boolean, retryable?: boolean); } /** * Formats a verified sender address with a display name for the From header. * Registrations store bare addresses; recipients should still see the company * name the way they see `VRPlatform `. */ export declare function formatSenderIdentity(name: string | null | undefined, address: string): string; export declare function sendEmail(data: { to: string; subject: string; text: string; html: string; replyTo?: string; tag?: string; metadata?: Record; from?: string; headers?: Record; }, options: { fetch?: (input: string | URL | Request, init?: RequestInit) => Promise; postmarkToken?: string; }): Promise<{ httpStatus: number; messageId: string; submittedAt: string; }>; export declare function settleEmailDeliveries(deliveries: Promise[]): Promise; export {};