import type { RefObject } from 'react'; /** * Type for a value that is optionally wrapped in a RefObject type */ export type Unreffable = RefObject | T; /** * Type to get the value of a Unreffable */ export type Unref> = T extends RefObject ? U : T; /** * This function returns the current value of a ref object, or the plain value. */ export declare function unref(target: Unreffable): T | null;