import type { Ref } from 'react'; /** * A cleanup function returned from a RefCallback. */ export type CleanupFn = () => void; /** * A React {@link Ref} with `null` removed. */ export type NonNullRef = Exclude, null>; /** * @param ref {@link NonNullRef} to assign to. * @param value Value to assign to the ref. * @returns An appropriate cleanup function for the ref. */ export declare function assignToRef(ref: NonNullRef, value: T): CleanupFn; //# sourceMappingURL=react-ref.d.ts.map