import React from 'react'; import { type IconType } from '../Icon'; import type { PolymorphicProps, PolymorphicComponent } from '../../utils/polymorphicComponent'; import { type onActionEvent } from './ActionListContext'; interface ActionListItemProps extends PolymorphicProps> { /** * A unique key to identify the action when triggered, when not provided * will use the child text content as the key. */ actionKey?: string; /** Displays a leading icon for the action item. */ leadingIcon?: IconType; /** Displays a trailing icon for the action item. */ trailingIcon?: IconType; /** Provides an additional description for the action item. */ description?: React.ReactNode; /** Indicates if the current action item is selected. */ selected?: boolean; /** When an action item is disabled, it cannot be selected or activated. */ disabled?: boolean; /** A callback function that is called when an action item is selected. */ onAction?: (event: onActionEvent) => void; /** Alternative variant for action items */ variant?: 'default' | 'danger'; } declare const ActionListItem: PolymorphicComponent; export default ActionListItem;