/** * Legacy event compatibility layer. * * Pure EventEmitter-style shim — no side effects, no uvdsl dependencies. * Wired into the auth session by authSession.ts. */ export type LegacyEventName = 'identityReplaced' | 'login' | 'logout' | 'sessionChange' | 'sessionRestore'; type LegacyEventHandler = (...args: unknown[]) => void; /** * Minimal EventEmitter-style shim so that existing consumers using * `authSession.events.on('login' | 'logout' | 'sessionRestore', handler)` * continue working without modification. * * Events are emitted by SolidAuthnLogic.checkUser() (login/sessionRestore) * and by the identity state in identityState.ts ('logout', 'sessionChange', * 'identityReplaced' — the event the reload helper subscribes to). */ export declare class SessionEvents { private readonly listeners; on(event: LegacyEventName, handler: LegacyEventHandler): void; off(event: LegacyEventName, handler: LegacyEventHandler): void; emit(event: LegacyEventName, ...args: unknown[]): void; } export {}; //# sourceMappingURL=events.d.ts.map