/** * Emit an event locally (via `eventEmitter`) and post it on a same-named BroadcastChannel * so subscribers in other same-origin tabs receive it too. Use this for events whose * effects should propagate across tabs — logout, login, profile switch, etc. */ export declare const broadcastEvent: (event: string, payload?: unknown) => void; /** * Subscribe to cross-tab broadcasts of `event`. Returns an unsubscribe function. No-op on * environments without `BroadcastChannel` (older Node, very old browsers). */ export declare const subscribeToBroadcastEvent: (event: string, callback: (payload: unknown) => void) => (() => void); //# sourceMappingURL=index.d.ts.map