/**
 * Hook to get the previous value of a state or prop. Returns an object with:
 *
 * - `hasChanged`: Whether the value has changed since the previous render / call to this function.
 * - `value`: The value that was passed to the hook in the previous render (`undefined` on first
 *   render).
 * - `lastDifferentValue`: The most recent value that was different from the current value.
 *
 * @example
 *
 * ```ts
 * const previous = usePrevious(someValue)
 * if (previous.hasChanged) {
 *   // Value changed from `previous.value` to `someValue`
 * }
 * ```
 */
export declare function usePrevious<T>(value: T): {
    hasChanged: boolean;
    value: T | undefined;
    lastDifferentValue: T | undefined;
};
//# sourceMappingURL=usePrevious.d.ts.map