import { type ComponentPropsWithoutRef, type RefObject } from 'react'; import { type ExtractedContentSlot } from '../../split-layout/slots.js'; import type { SidebarPanelState } from '../shared/panel-state/usePanelState.js'; import { type ExtractedSidebarSlot } from './slots.js'; type SidebarSlot = ExtractedSidebarSlot & { state: SidebarPanelState; }; /** * The prop bag `PageLayout`'s main shell passes down for the sidebar region. * Not the public props of a sidebar: consumers configure it through * `PageLayout.Sidebar`. * * @internal */ export type SidebarRegionShellProps = { sidebar: SidebarSlot | null; content: ExtractedContentSlot; containerRef: RefObject; } & Omit, 'children' | 'content'>; /** * Renders the sidebar region. The `SplitLayout` and the content column are * rendered unconditionally: an absent sidebar is a zero-width, non-resizable * panel column, never a different tree shape. Branching on slot presence would * relocate the content host and detach the scrolled content (APPDEV-19606). * * @internal */ export declare const SidebarRegion: import("react").MemoExoticComponent<(props: { sidebar: SidebarSlot | null; content: ExtractedContentSlot; containerRef: RefObject; } & Omit, HTMLDivElement>, "ref">, "children" | "content"> & import("react").RefAttributes) => import("react").ReactElement | null>; export {}; //# sourceMappingURL=SidebarRegion.d.ts.map