type SiteOpenedClient = { recordSiteOpened?: (workspaceId: string, siteId: string) => Promise; }; /** * Record that this person opened a Site in the app, which lists the Site in * their sidebar (it does not move the row: opening is not activity), once per * page the person goes to. A new client for the same person doesn't open it * again, a hidden page counts once it is shown, and a reload, a restored tab * or coming back to a page where the open was already recorded doesn't count. * Pages the open Site view moves to (choosing a conversation) belong to the * same open. */ export declare function useRecordSiteOpened(client: SiteOpenedClient, workspaceId: string, siteId: string): void; /** Calls `onOpened` with the Site after this workspace records a Site open. */ export declare function useSiteOpenedListener(workspaceId: string, onOpened: (siteId: string) => void, enabled?: boolean): void; export {};