import { j as StateBase, F as Falsy, A as AsyncState } from '../types-5EvFF6wb.cjs'; import 'keyweaver'; import 'react'; declare const useValue: { /** * A hook to retrieve the current value from the provided {@link state}. * It ensures that the component re-renders whenever the {@link state} value changes. * If the provided {@link state} is falsy, the hook returns `undefined` and performs no operations. */ (state: S): S extends StateBase ? K | (S extends AsyncState ? undefined : never) : never; }; export = useValue;