import { useEffect, useLayoutEffect } from 'react'; export declare const useEffectWithPreviousValue: (callback: (newValue: T, oldValue: T) => void, dependency: T, useEffectFn?: typeof useEffect | typeof useLayoutEffect, equalityFn?: (a: T, b: T) => boolean) => void;