/** * This hook is used to detect when a value has changed during new rendering. * It is useful to trigger an action when a value has changed. * @param value - the value to watch * @param onChange - the action to trigger when the value has changed * @returns - a boolean that is true when the value has changed */ export declare function useIsChanged({ value, onChange, }: { value: T; onChange?: () => void; }): boolean;