import { Texts, SelectProps } from '../types'; import { SupportedLanguage } from '../../modularOptionList/types'; import { OptionIterator } from '../../modularOptionList/utils'; export type SelectStorageProps = Omit & { updateKey?: string; }; /** * useSelectStorage helps users to memoize data and selections. Also to selectively update data. * Select itself should not have more props like "updatedData" etc, so better to make this component storage. * This hook outputs props whose refs do not change, so it reduces re-renders and data loss. * The storage can be updated by (re)setting the "updateKey" prop. * @param props * @returns */ export declare function useSelectStorage(props: SelectStorageProps): { getProps: () => SelectProps; updateAllOptions: (iterator: OptionIterator) => void; setError: (textOrInvalid: string | boolean) => void; setOpen: (open: boolean) => void; setDisabled: (disabled: boolean) => void; setInvalid: (invalid: boolean) => void; updateTexts: (texts: Partial, language?: SupportedLanguage) => void; render: () => void; };