type Unsubscribe = { unsubscribe: () => void; }; interface IEventManager { on(event: string, listener: (...args: any[]) => void): Unsubscribe; emit(event: string, ...args: any[]): void; clearAllListeners(): void; } declare const Event: { readonly INIT: "init"; readonly TOKEN_EXPIRED: "token_expired"; readonly TOKEN_REFRESH_FAILED: "token_refresh_failed"; }; type Event = (typeof Event)[keyof typeof Event]; declare class EventManager implements IEventManager { private readonly events; private readonly subscriptions; on(event: Event, listener: (...args: any[]) => void): Unsubscribe; emit(event: Event, ...args: any[]): void; clearAllListeners(): void; } export { Event, EventManager, type IEventManager, type Unsubscribe };