type Callback = (args: E) => void; /** * MachineConnectionEvent events are emitted by a Client's EventDispatcher when connection events * occur. */ export declare enum MachineConnectionEvent { CONNECTING = "connecting", CONNECTED = "connected", DISCONNECTING = "disconnecting", DISCONNECTED = "disconnected", DIALING = "dialing", RECONNECTING = "reconnecting", RECONNECTION_FAILED = "reconnection_failed" } export declare class EventDispatcher { listeners: Partial<{ [K in keyof Events]: Set>; }>; on(type: K, listener: Callback): void; once(type: K, listener: Callback): void; has(type: K, listener: Callback): boolean | undefined; off(type: K, listener: Callback): void; emit(type: K, args: Events[K]): void; } export {};