import * as React from 'react'; import type { ReactNode, Ref } from 'react'; type PossibleRef = React.Ref | React.RefObject | React.Dispatch> | undefined; /** * Set a given ref to a given value * This utility takes care of different types of refs: callback refs and RefObject(s) */ export declare function setRef(ref: PossibleRef, value: T): void; /** * A utility to compose multiple refs together * Accepts callback refs and RefObject(s) */ export declare function composeRefs(...refs: PossibleRef[]): (node: T) => void; /** * A custom hook that composes multiple refs * Accepts callback refs and RefObject(s) */ export declare function useComposedRefs(...refs: PossibleRef[]): (node: T) => void; export type RefProp = { ref?: Ref; }; export type RefComponent = ((props: Props & RefProp) => ReactNode) & { displayName?: string; propTypes?: any; }; export declare function createRefComponent(render: (props: Props, ref: Ref | undefined) => ReactNode): RefComponent; export {}; //# sourceMappingURL=compose-refs.d.ts.map