import type { SessionBrowseGroupBy, SessionBrowseSortBy } from "./sessions-group.js"; /** "needs-you" is the Active list narrowed to workstreams waiting on the person. */ export type SessionBrowseStatus = "active" | "needs-you" | "archived" | "all"; export type SessionBrowsePreferences = { groupBy: SessionBrowseGroupBy; sortBy: SessionBrowseSortBy; status: SessionBrowseStatus; /** Only workstreams the person started or messaged. */ mineOnly: boolean; showEmptyGroups: boolean; }; export declare const DEFAULT_SESSION_BROWSE_PREFERENCES: SessionBrowsePreferences; /** * True only when the view differs from the default. The default view must not * look filtered: a new person with no sessions sees the real empty state, not * "No sessions match this view". */ export declare function sessionBrowsePreferencesCustomized(value: SessionBrowsePreferences): boolean; type BrowsePreferenceStorage = Pick; export declare function sessionBrowsePreferenceStorageId(subjectId: string, workspaceId?: string): string; export declare function readSessionBrowseGroupBy(preferenceStorageId: string, storage?: BrowsePreferenceStorage | null): SessionBrowseGroupBy; export declare function writeSessionBrowseGroupBy(preferenceStorageId: string, groupBy: SessionBrowseGroupBy, storage?: BrowsePreferenceStorage | null): void; export declare function readSessionBrowsePreferences(id: string, storage?: BrowsePreferenceStorage | null): SessionBrowsePreferences; export declare function writeSessionBrowsePreferences(id: string, value: SessionBrowsePreferences, storage?: BrowsePreferenceStorage | null): void; /** * The list sections (projects and other groups) this person collapsed in this * workspace on this device. Only collapses are remembered, so a new project * still opens by default. */ export declare function readCollapsedSessionSections(id: string, storage?: BrowsePreferenceStorage | null): ReadonlySet; export declare function writeCollapsedSessionSections(id: string, keys: ReadonlySet, storage?: BrowsePreferenceStorage | null): void; /** * The collapsed list sections for one person and workspace (`id` from * `sessionBrowsePreferenceStorageId`). Sections open by default; the ones the * person collapses are remembered on this device, so they stay collapsed after * a reload while new sections still open. Switching `id` loads that * workspace's own set. */ export declare function useCollapsedSessionSections(id: string, storage?: BrowsePreferenceStorage | null): [ReadonlySet, (update: (current: ReadonlySet) => ReadonlySet) => void]; export {};