type ValueBagGetter = () => T; type ValueBagSetterAction = (_: T) => T; type ValueBagSetterValue = T; type ValueBagSetter = (_: ValueBagSetterValue | ValueBagSetterAction) => void; type ValueBag = readonly [ValueBagGetter, ValueBagSetter]; /** * a value bag similar in the functionality to the React's `useState`, * can be a very useful replacement of it eg. in tests or non-react code * @param value the initial value */ export declare function valueBag(value: T): ValueBag; export declare function valueBag(): ValueBag; export declare function valueBag(): ValueBag; export {};