/** * Stores and returns the previous value of something. Useful in niche situations. * Internally, it uses `useRef`. * * ``` * const previousLocation = usePrevious(location) * ``` */ export declare function usePrevious(value: T): T | undefined;