import { ComponentProps, ReactNode } from 'react'; export interface SidebarContextValue { isCollapsed: boolean; isPeeking: boolean; open: boolean; setOpen: (open: boolean) => void; /** Mirrors the `collapsible` prop; `'none'` means it cannot be collapsed. */ collapsible: 'icon' | 'hidden' | 'none'; position: 'left' | 'right'; hideItemTooltips?: boolean; /** id of the sidebar element, for `aria-controls` on toggle controls. */ sidebarId?: string; } export declare const SidebarContext: import("react").Context; export declare function useSidebar(): SidebarContextValue; export declare function useSidebarSafe(): SidebarContextValue; export declare const SidebarPopupContext: import("react").Context<(open: boolean) => void>; export interface SidebarRootProps extends ComponentProps<'aside'> { position?: 'left' | 'right'; variant?: 'plain' | 'floating' | 'inset'; /** * Hide the tooltips the Sidebar adds to items: the label tooltip when * collapsed, and the full-text tooltip on clipped labels when expanded. */ hideItemTooltips?: boolean; /** * Whether the user can collapse the sidebar, and what the collapsed * state looks like. Expanding always works the same: the sidebar opens * in place and pushes content. * - `'icon'`: collapses to an icon rail (default). * - `'hidden'`: collapses to a thin strip with no visible content. * - `'none'`: the sidebar cannot be collapsed; the resize handle is hidden. * * Unlike `collapsible` on `Sidebar.Group`, which renders a group * as an accordion. */ collapsible?: 'icon' | 'hidden' | 'none'; /** * Hovering a collapsed sidebar temporarily reveals it as an overlay above * the content, without changing the real open state. Reverts on mouse leave. */ peekOnHover?: boolean; /** * Delay in milliseconds before a hover starts a peek. * Only applies when `peekOnHover` is set. * @default 100 */ peekDelay?: number; /** Tooltip shown when hovering the collapse/expand handle. */ collapseTooltip?: ReactNode; open?: boolean; defaultOpen?: boolean; onOpenChange?: (open: boolean) => void; } export declare function SidebarRoot({ className, id: providedId, position, variant, open: providedOpen, onOpenChange, onMouseEnter, onMouseLeave, hideItemTooltips, collapsible, peekOnHover, peekDelay, collapseTooltip, defaultOpen, children, ...props }: SidebarRootProps): import("react/jsx-runtime").JSX.Element; export declare namespace SidebarRoot { var displayName: string; } //# sourceMappingURL=sidebar-root.d.ts.map