import { A as AsyncState, j as StateBase } from '../types-5EvFF6wb.cjs'; import 'keyweaver'; import 'react'; declare const useOnValueChange: { /** * A hook that triggers a callback function when the value of the provided {@link state} changes. * Useful for performing side effects whenever a single state value updates. */ (state: AsyncState, cb: (value: T | undefined) => void): void; /** * A hook that triggers a callback function when the value of the provided {@link state} changes. * Useful for performing side effects whenever a single state value updates. */ (state: StateBase, cb: (value: T) => void): void; /** * A hook that triggers a callback function when the values of multiple {@link states} change. * Useful for performing side effects whenever any of the provided state values update. */ (states: S, cb: (values: { [index in keyof S]: S[index] extends StateBase ? K | (S[index] extends AsyncState ? undefined : never) : never; }) => void): void; }; export = useOnValueChange;