import { Ref, RefCallback } from 'react'; type PossibleRef = Ref | undefined; /** * A utility to compose multiple refs together * Accepts callback refs and RefObject(s) * * Always returns a cleanup, so React 19 detaches through it rather than calling * the composed ref with `null`. A ref that returned its own cleanup has that * called; every other ref is explicitly set to `null`. */ declare function composeRefs(...refs: PossibleRef[]): RefCallback; /** * A custom hook that composes multiple refs * Accepts callback refs and RefObject(s) */ declare function useComposedRefs(...refs: PossibleRef[]): RefCallback; export { composeRefs, useComposedRefs }; //# sourceMappingURL=compose-refs.d.ts.map