import React, { Key } from 'react'; import type { TreeState } from '@react-stately/tree'; import type { Node } from '@react-types/shared'; import type { CSS } from '../theme/stitches.config'; import type { SimpleColors, DropdownVariants } from '../utils/prop-types'; interface Props { item: Node; state: TreeState; color?: SimpleColors; variant?: DropdownVariants; textColor?: SimpleColors; /** * Shows a divider between sections * @default true */ withDivider?: boolean; as?: keyof JSX.IntrinsicElements; css?: CSS; className?: string; onAction?: (key: Key) => void; } declare type NativeAttrs = Omit, keyof Props>; export declare type DropdownSectionProps = Props & NativeAttrs; declare const DropdownSection: { (props: DropdownSectionProps): JSX.Element; displayName: string; toString(): string; }; export default DropdownSection;