import React, { ReactNode, Key } from 'react'; import { Node } from '@react-types/shared'; import { TreeState } from '@react-stately/tree'; import type { FocusableProps } from '@react-types/shared'; import { CSS } from '../theme/stitches.config'; import type { SimpleColors, NormalWeights, DropdownVariants } from '../utils/prop-types'; interface Props extends FocusableProps { item: Node; state: TreeState; color?: SimpleColors; variant?: DropdownVariants; textColor?: SimpleColors; isVirtualized?: boolean; withDivider?: boolean; command?: string; description?: string; icon?: ReactNode; dividerWeight?: NormalWeights; as?: keyof JSX.IntrinsicElements; onAction?: (key: Key) => void; } declare type NativeAttrs = Omit, keyof Props>; export declare type DropdownItemProps = Props & NativeAttrs & { css?: CSS; }; declare const DropdownItem: { ({ as, css, item, state, color, icon, command, description, textColor, variant, autoFocus, isVirtualized, withDivider, dividerWeight, onAction, className }: DropdownItemProps): JSX.Element; displayName: string; toString(): string; }; export default DropdownItem;