import React from 'react'; import { type BasedAdditionalProps, type SelectBoxOption } from './SelectBox.types'; type SelectBoxOptionProps = { /** * The option data to render. */ option: SelectBoxOption; /** * Whether this option is currently selected. */ isSelected: boolean; /** * Index of the currently tabbable option. */ tabbableOptionIndex: number; /** * Index of this option in the flat options array. */ optionIndex: number; /** * CSS classes from the parent component. */ classes: { listItem: string; }; /** * Custom render function for the option. */ renderOption?: (option: SelectBoxOption, isSelected: boolean) => React.ReactNode; /** * Handler called when option receives focus. */ onFocus: (optionIndex: number) => void; /** * Handler called when option is clicked. */ onClick: (option: SelectBoxOption) => void; /** * Handler for keyboard events. */ onKeyDown: (event: React.KeyboardEvent) => void; }; export declare const SelectBoxOptionComponent: ((props: SelectBoxOptionProps) => React.ReactElement) & { displayName: string; }; export {};