export interface PresenceViewer { id?: string; displayName: string; personId?: string; } export interface PresenceSnapshot { conversationId: string; totalViewers: number; viewers: PresenceViewer[]; } type Listener = (snapshot: PresenceSnapshot) => void; /** In-memory cache of presence per conversation; socket handler registered once, rebroadcast on server join/leave so no polling needed */ export declare class PresenceStore { private static snapshots; private static listeners; private static handlersRegistered; static ensureHandlers: () => void; static reset: () => void; static get: (conversationId: string) => PresenceSnapshot | null; static subscribe: (conversationId: string, listener: Listener) => (() => void); private static notify; private static normalize; private static equals; static forget: (conversationId: string) => void; } export {}; //# sourceMappingURL=PresenceStore.d.ts.map