export type StableCallback = (...args: A) => R;
/**
* Returns a callback with a stable reference that always invokes the latest `callback`. It lets a
* function that depends on state high in the tree be passed down, or listed as a hook dependency,
* without changing its reference on every render.
*
* Do not wrap a function that returns a React element (e.g. a `renderItem` prop): React is not told
* to re-render when its result changes. Prefer `useCallback` or a stable function when one works.
*
* @param callback - Callback to stabilize.
* @returns A stable function that forwards its arguments to `callback` and returns its result.
*/
export declare const useStableCallback: (callback: StableCallback) => StableCallback;
//# sourceMappingURL=useStableCallback.d.ts.map