export declare const WHATSAPP_REENGAGEMENT_ERROR_CODE = 131047; export declare const DELIVERY_FAILURE_MESSAGE_ID_SUFFIX = ":delivery-failed"; export interface WindowClosedFailure { messageId: string; phoneNumberId: string; recipientId: string; timestamp: string; } export declare function parseWindowClosedFailures(payload: unknown): WindowClosedFailure[]; export declare function isDeliveryFailureNotice(message: { id: string; }): boolean; export declare function isRecentFailure(failure: WindowClosedFailure, now?: number): boolean; export declare const DELIVERY_FAILURE_NOTICE: string; export declare const DELIVERY_FAILURE_CHAT_NOTICE: string; export declare class DeliveryFailureRecoveryLimiter { private readonly windowMs; private readonly maxRecoveries; private readonly maxTrackedMessageIds; private readonly recoveryTimes; private readonly seenMessageIds; constructor(windowMs: number, maxRecoveries: number, maxTrackedMessageIds?: number); tryAcquire(failure: WindowClosedFailure, now?: number): boolean; }