export type SessionListSnap = { ids?: readonly string[]; byId?: Record; current?: string; }; export type SessionsFace = { open: (id: string) => void; list?: { getSnapshot?: () => SessionListSnap; }; refresh?: () => Promise; }; export declare function sessionIsListed(list: SessionListSnap | undefined, id: string): boolean; export declare function openListedSession(sessions: SessionsFace, id: string): Promise<'opened' | 'missing'>;