import React, { type ReactNode } from 'react'; import type { IconOrContent } from '../../util/utility-types'; export type PopoverListItemProps = { /** * Child node(s) that can be nested inside component */ children?: ReactNode; /** * CSS class names that can be appended to the component. */ className?: string; __type?: 'selectitem' | 'listitem' | 'label' | 'separator' | 'caption'; /** * Handling behavior for whether the marked menu item is destructive or not (deletes, removes, etc.) */ isDestructiveAction?: boolean; /** * Whether the component is in focus (programmatically or otherwise) */ isFocused?: boolean; /** * Whether the list item is treated as disabled */ isDisabled?: boolean; /** * Content to appear at the start of the list item. Takes an EDS icon name, or any content * to render in its place at 24px. */ leadingContent?: IconOrContent; /** * Text below the main menu item call-to-action, briefly describing the menu item's function */ subLabel?: ReactNode; /** * Content (icon, text, other component) to appear at the end of the list item. Recommended maximum size of 24 pixels. */ trailingContent?: ReactNode; }; /** * ## Usage * * Styles and containers for individual elements in internal Popover-like components (e.g., `Menu`, * `Select`). This should not be used directly by consumers. * * Each item lays out four optional slots: `leadingContent` at the start, the `children` label, * `subLabel` beneath the label, and `trailingContent` at the end. * * `Menu`, `Select`, and `Combobox` compose this for you and drive the `isFocused`, `isDisabled`, * and `isDestructiveAction` states from their own render props. Because HeadlessUI implements * listbox options as a render prop, the same item works for both listbox and menu shapes. Reach * for those components rather than this one. */ export declare const PopoverListItem: React.ForwardRefExoticComponent>;