type OptionValue = Value | MappedValue | string; interface UseOptionValueParameters { options: readonly Value[]; getOptionValue?: ((option: Value) => MappedValue) | undefined; isOptionEqualToValue?: ((option: Value, value: OptionValue) => boolean) | undefined; freeSolo: boolean; multiple: boolean; value: OptionValue | readonly OptionValue[] | null; } declare const defaultGetOptionValue: (option: Value) => Value; /** * Maps and matches Autocomplete values using cached option lookups and custom equality when supplied. * Current options take precedence over retained selections created by `filterOptions`. * * Call `rememberSelectedOption` before resetting the input or publishing an option selection. * Retained options survive popup closure and are discarded once no longer selected. * Matches wrap the original option or free-solo string; unresolved mapped values return `null`. */ export default function useOptionValue({ options, getOptionValue: getOptionValueProp, isOptionEqualToValue: isOptionEqualToValueProp, freeSolo, multiple, value }: UseOptionValueParameters): { getOptionValue: ((option: Value) => MappedValue) | typeof defaultGetOptionValue; isOptionEqualToValue: (option: Value, value: OptionValue) => boolean; isOptionSelected: (option: Value) => boolean; getOptionFromValue: (value: OptionValue) => { option: OptionValue; } | null; rememberSelectedOption: (option: Value, optionValue: OptionValue) => void; }; export {};