/** * React state hook that returns the latest state as described in the React hooks FAQ. * * This is mostly useful to get access to the latest value of some props or state inside an asynchronous callback, instead of that value at the time the callback was created from. * * @param value - Any value that you want to track * * @returns The React's RefObject of that value, which always the latest value. * * @see [React Hooks FAQ](https://legacy.reactjs.org/docs/hooks-faq.html#why-am-i-seeing-stale-props-or-state-inside-my-function) * * @see [react-use useLatest](https://github.com/streamich/react-use/blob/master/docs/useLatest.md) */ export declare const useLatest: (value: T) => { readonly current: T; };