import type { Client } from '@sentry/core'; import type { ILogoutOptions, IUser } from '../security'; /** * Definition of the custom events that can be dispatched and listened to. */ export interface VisynEventMap { sentryInitialized: { client: Client | undefined; }; userLoggedIn: { user: IUser | null; }; userLoggedOut: { options: ILogoutOptions; }; } /** * Typed custom event. */ export type VisynEvent = CustomEvent; /** * Dispatch a typed custom event. */ export declare function dispatchVisynEvent(eventName: K, detail: VisynEventMap[K]): void; /** * Listen for a typed custom event. */ export declare function addVisynEventListener(eventName: K, callback: (event: CustomEvent) => void): void; /** * Remove an event listener. */ export declare function removeVisynEventListener(eventName: K, callback: (event: CustomEvent) => void): void; //# sourceMappingURL=VisynEvents.d.ts.map