import { UseNotificationsReturn } from './store.js'; export type NotificationsBridge = { publish: (next: UseNotificationsReturn) => void; subscribe: (listener: () => void) => () => void; getSnapshot: () => UseNotificationsReturn; }; export declare function createNotificationsBridge(initial: UseNotificationsReturn): NotificationsBridge; export declare const NotificationsBridgeProvider: import('react').Provider; /** * Returns the notifications store, kept live for a component mounted outside * the tree that owns the `useNotifications` call (the modal host renders * host-opened content as a sibling of the page, not a descendant) — the * bridge is a stable object the owner publishes fresh snapshots into, so * subscribers here re-render on every publish rather than reading whatever * props were frozen when the element was handed to `host.open()`. */ export declare function useLiveNotifications(): UseNotificationsReturn;