import { TypedEvents } from 'events-constructor'; import { TAttemptStatus } from './types'; export declare const EVENT_NAMES: readonly ["before-attempt", "success", "failed-all-attempts", "cancelled-attempts", "changed-attempt-status", "stop-attempts-by-error", "limit-reached-attempts", "telephony-check-failure", "telephony-check-escalated"]; export type TEventMap = { 'before-attempt': Record; success: never; 'failed-all-attempts': Error; 'cancelled-attempts': unknown; 'changed-attempt-status': TAttemptStatus; 'stop-attempts-by-error': unknown; 'limit-reached-attempts': Error; 'telephony-check-failure': { failCount: number; escalationLevel: 'none' | 'warning' | 'critical'; shouldRequestReconnect: boolean; nextRetryDelayMs: number; error: unknown; }; 'telephony-check-escalated': { failCount: number; escalationLevel: 'warning' | 'critical'; error: unknown; }; }; export type TEvents = TypedEvents; export declare const createEvents: () => TypedEvents;