import React, { ReactNode } from 'react'; /** * Types for the `SidebarContext` * * @public @deprecated * Use `SidebarOpenState` instead. */ export type SidebarContextType = { isOpen: boolean; setOpen: (open: boolean) => void; }; /** * The open state of the sidebar. * * @public */ export type SidebarOpenState = { /** * Whether or not the sidebar is open and full-width. When `false`, the * sidebar is "closed" and typically only shows icons with no text. */ isOpen: boolean; /** * A function to set whether or not the sidebar is open. Pass `true` to open * the sidebar. Pass `false` to close it. */ setOpen: (open: boolean) => void; }; /** * Context whether the `Sidebar` is open * * @public @deprecated * Use `` + `useSidebarOpenState()` instead. */ export declare const LegacySidebarContext: React.Context; /** * Provides context for reading and updating sidebar state. * * @public */ export declare function SidebarOpenStateProvider(props: { children: ReactNode; value: SidebarOpenState; }): React.JSX.Element; /** * Hook to read and update the sidebar's open state, which controls whether or * not the sidebar is open and full-width, or closed and only displaying icons. * * @public */ export declare const useSidebarOpenState: () => SidebarOpenState;