/** The conversation list beside the thread: full width, a rail of icons, or * not shown at all (the host offers its own way back). */ export type SidebarState = 'expanded' | 'collapsed' | 'hidden'; /** How the layout shows the list right now: as a column beside the thread, * or as a drawer over it. */ export type SidebarPresentation = 'inline' | 'drawer'; /** The reader's own choice between the column and the rail, remembered through * the host's persisted state. Hiding the list is the host's call, so it lasts * only for the page that made it. */ export declare function useOwnSidebar(): readonly [SidebarState, (state: SidebarState) => void]; /** A value the host may own through a prop. Without the prop the provider * keeps it in `own`; either way the change callback hears every change. The * ref reads the latest value from callbacks that should not re-create. */ export declare function useControllable(controlled: T | undefined, own: readonly [T, (value: T) => void], onChange: ((value: T) => void) | undefined): readonly [T, (next: T) => void, import("react").RefObject<{ value: T; controlled: boolean; onChange: ((value: T) => void) | undefined; setOwn: (value: T) => void; }>]; export declare const ReportSidebarPresentationContext: import("react").Context<(presentation: SidebarPresentation) => void>; export declare function useReportSidebarPresentation(): (presentation: SidebarPresentation) => void;