import { type LegacyRef, type MutableRefObject, type Ref, type RefCallback } from 'react'; /** * Merge multiple react refs into a single ref callback. * This can be used to merge callback and object refs into a single ref. * Merged callback refs will be called while object refs will have their current property set. * @param refs The refs to merge * @returns A ref callback that will set the value on all refs */ export declare function mergeRefs(...refs: readonly (MutableRefObject | LegacyRef | null | undefined)[]): RefCallback; /** * Merges multiple refs into one ref that can be assigned to the component. * In turn all the refs passed in will be assigned when the ref returned is assigned. * @param refs Array of refs to assign */ export declare function useMergeRef(...refs: readonly Ref[]): RefCallback; //# sourceMappingURL=useMergeRef.d.ts.map