/**
 * Used to create a self-updating ref that can be utilized in tasks that are happening outside React's render loop.
 *
 * Event listeners for 'message' events, for example: they define a singular, never-changing handler but this handler
 * needs always-up-to-date access to the latest callbacks that got passed in by the user.
 *
 * @param value The value to be stored (and updated) in the ref's `current` property.
 *
 * @return A read-only ref that always contains the latest value.
 */
export declare const useUpdatingRef: <T extends NonNullable<unknown>>(value: T) => {
    readonly current: T;
};
