import { type PropsWithChildren } from 'react'; import { ComponentWithAs as _ } from '@chakra-ui/react'; import type { BaseSidebarItemProps } from './types'; export interface SidebarListProps extends BaseSidebarItemProps { label: React.ReactNode; /** Controlled state for expansion of section */ isExpanded?: boolean; /** Uncontrolled state for expansion of section */ defaultIsExpanded?: boolean; /** Controlled callback for when section's expansion state changes */ onExpand?: (nextState: boolean) => void; /** Only allow toggling of expand state when clicking the caret. * Could be useful if user wants to use the list item as a link. * * @default false */ onlyCaretToggle?: boolean; /** Whether the element is currently active */ isActive?: boolean | (() => boolean); /** Callback invoked when section is clicked */ onClick?: () => void; } export declare const SidebarList: _<"li", PropsWithChildren>;