export type SiteRecord = { id: string; workspaceId: string; title: string; /** Latest activity (ms): conversations, a new version, or the person opening it. */ updatedAt: number; }; /** The fields of a sidebar Site row or a catalog item the menu reads. */ export type SiteSource = { siteId?: string; id?: string; title: string; updatedAt: string; }; /** Turns sidebar rows or catalog items into records, dropping anything malformed. */ export declare function siteRecords(workspaceId: string, sources: readonly SiteSource[]): SiteRecord[]; /** The sidebar reports the Site rows it shows for a workspace; the newest list replaces the last. */ export declare function rememberSidebarSites(subjectId: string, workspaceId: string, sources: readonly SiteSource[]): void; /** The workspace's Sites the sidebar knows, most recent activity first. */ export declare function readSidebarSites(subjectId: string, workspaceId: string): readonly SiteRecord[]; /** Re-renders when the directory changes; read it through `readSidebarSites`. */ export declare function useSiteDirectoryVersion(subjectId: string): number; /** A Site's page in the app, as a plain path (new tab). */ export declare function sitePath(workspaceId: string, siteId: string): string;