import { ModularOptionListProps, Texts, SupportedLanguage } from '../types'; import { OptionIterator } from '../utils'; export type ModularOptionListStorageProps = Omit & { updateKey?: string; }; /** * useModularOptionListStorage helps users to memoize data and selections. Also to selectively update data. * ModularOptionList 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 useModularOptionListStorage(props: ModularOptionListStorageProps): { getProps: () => ModularOptionListProps; updateAllOptions: (iterator: OptionIterator) => void; setError: (textOrInvalid: string | boolean) => void; setDisabled: (disabled: boolean) => void; setInvalid: (invalid: boolean) => void; updateTexts: (texts: Partial, language?: SupportedLanguage) => void; render: () => void; };