import { useRef } from "react";
/**
 * This hook combines multiple refs into one so they all point to the same element
 */
export default function useMergeRefs<T extends ReturnType<typeof useRef>>(mainRef: T, ...otherRefs: (T | undefined)[]): T;
/**
 * This function exists so we can work with multiple refs as a single one, almost immediatly
 */
export declare function useMergeRefsFunc<T extends ReturnType<typeof useRef> | ((ref: any) => void)>(mainRef: T, ...otherRefs: T[]): (providedRef: any) => void;
