import { default as React } from 'react'; import { AriaButtonProps } from 'react-aria'; import { SafeOmit } from '../../../.deps/utils/src'; import { SafeExtract, Size } from '../../../types'; /** @inheritdoc */ export interface SingleSelectTriggerProps extends SafeOmit { /** * Sets the accessibility label for the trigger button. */ label: string; /** * Placeholder text displayed when no option is selected. */ placeholder?: string; /** * The width of the trigger button. * @default 'md' */ width?: SafeExtract; /** * Display error state. */ error?: boolean; /** * Display warning state. */ warning?: boolean; /** * Icon type for the trigger. */ icon?: false | 'search' | 'picker'; /** * Currently selected value. */ value?: T | null; /** * Function to get the label for a given option. */ getOptionLabel(option: T): string; /** * Current search query (for filtered selects). */ searchQuery?: string | null; /** * Custom render function for the selected value. */ renderValue?(value: T | null, labelId: string): React.ReactNode; } export declare const SingleSelectTrigger: (props: SingleSelectTriggerProps & React.RefAttributes) => React.ReactNode;