import { SelectItemProps, SelectProps } from '@heroui/react'; import { Control, FieldValues, Path, RegisterOptions } from 'react-hook-form'; export type SelectOptionItem = { value: string | number; label: string; props?: SelectItemProps; } & TExtra; type SelectBaseProps = SelectProps>; export interface InputSelectProps extends Omit, "children" | "items" | "selectedKeys" | "defaultSelectedKeys" | "selectionMode" | "onSelectionChange"> { options: SelectOptionItem[]; onSelectItem?(item: SelectOptionItem): void; /** Selected key (controlled). */ selectedKey?: string | number | null; /** Initial selected key (uncontrolled). */ defaultSelectedKey?: string | number; /** Fired when the selected key changes (`null` when cleared). */ onSelectionChange?(key: string | null): void; } declare function InputSelect(props: InputSelectProps): import("react").JSX.Element; declare namespace InputSelect { var displayName: string; var WithRHFControl: typeof WithControl; } type WithControlProps = InputSelectProps & { control: Control; name: Path; rules?: RegisterOptions>; }; declare function WithControl(props: WithControlProps): import("react").JSX.Element; export default InputSelect;