import type { MutableRefObject } from 'react'; /** * React.Ref uses the readonly type `React.RefObject` instead of * `React.MutableRefObject`, We pretty much always assume ref objects are * mutable (at least when we create them), so this type is a workaround so some * of the weird mechanics of using refs with TS. */ export type AssignableRef = { bivarianceHack(instance: ValueType | null): void; }['bivarianceHack'] | MutableRefObject; export declare function assignRef(ref: AssignableRef | null | undefined, value: any): void; /** * Passes or assigns a value to multiple refs (typically a DOM node). Useful for * dealing with components that need an explicit ref for DOM calculations but * also forwards refs assigned by an app. * * @param refs Refs to fork */ export declare function mergeRefs(...refs: (AssignableRef | null | undefined)[]): ((node: any) => void) | null; //# sourceMappingURL=mergeRefs.d.ts.map