/** * Hook that returns the previous value of a variable * * @template T - The type of the value * @param value - The current value * @returns The previous value * * @example * ```tsx * const Counter = () => { * const [count, setCount] = useState(0); * const prevCount = usePrevious(count); * return
Now: {count}, Before: {prevCount}
; * }; * ``` */ export declare function usePrevious(value: T): T | undefined; //# sourceMappingURL=usePrevious.d.ts.map