import * as React from 'react'; import { ReactElement } from 'react'; import { RaRecord } from '../../types'; export type OptionTextElement = ReactElement<{ record: RaRecord; }>; export type OptionTextFunc = (choice: any) => React.ReactNode; export type OptionText = OptionTextElement | OptionTextFunc | string; export interface ChoicesProps { choices?: any[]; isFetching?: boolean; isLoading?: boolean; isPending?: boolean; optionValue?: string; optionText?: OptionText; translateChoice?: boolean; } export interface UseChoicesOptions { optionValue?: string; optionText?: OptionText; disableValue?: string; translateChoice?: boolean; createValue?: string; createHintValue?: string; } export declare const useChoices: ({ optionText, optionValue, disableValue, translateChoice, createValue, createHintValue, }: UseChoicesOptions) => { getChoiceText: (choice: any) => any; getChoiceValue: (choice: any) => any; getDisableValue: (choice: any) => any; }; //# sourceMappingURL=useChoices.d.ts.map