/** * The Site view's chat panel width, whether it is hidden and which side it * sits on, remembered per person (not per Site or workspace) in this * browser: a reader who likes a wide chat on the left gets it on every * Site. Storage that is blocked or full only means the choice lasts until * the page reloads. */ export declare const SITE_CHAT_MIN_WIDTH = 320; export declare const SITE_CHAT_MAX_WIDTH = 720; export declare const SITE_CHAT_DEFAULT_WIDTH = 400; /** The Site keeps at least this much room beside the chat. */ export declare const SITE_MIN_WIDTH = 360; type PanelStorage = Pick; export type SiteChatPosition = "left" | "right"; export type SiteChatPanelLayout = Readonly<{ width: number; collapsed: boolean; position: SiteChatPosition; }>; export declare function siteChatPanelStorageId(subjectId: string): string; export declare function clampSiteChatWidth(width: number): number; export declare function readSiteChatPanelLayout(storageId: string, storage?: PanelStorage | null): SiteChatPanelLayout; export declare function writeSiteChatPanelLayout(storageId: string, layout: SiteChatPanelLayout, storage?: PanelStorage | null): void; /** The signed-in person's panel layout, saved as it changes. */ export declare function useSiteChatPanelLayout(subjectId: string): { layout: Readonly<{ width: number; collapsed: boolean; position: SiteChatPosition; }>; update: (patch: Partial) => void; }; export {};