/**
 * Keeps a mutable ref in sync with the latest value from the current render.
 *
 * Useful when an effect or callback must always access the newest value
 * without adding that value to a dependency array and re-triggering logic.
 *
 * Common use cases:
 * - Access latest callback props inside long-lived effects/listeners
 * - Avoid stale closures in timers, subscriptions, and event handlers
 *
 * @typeParam TValue - The value type to keep up to date.
 * @param value - Current value from render scope.
 * @returns A ref whose `.current` always points to the latest value.
 */
declare const useLatest: <TValue>(value: TValue) => React.MutableRefObject<TValue>;
export default useLatest;
