import { ComponentProps, ForwardedRef, RefObject } from 'react'; import { DescendantContextType } from './DescendantsContext'; interface UseDescendantReturnObject { ref: RefObject; index: number; id: string; } /** * Registers a component as a descendant of a given context, and calculates its index within the * rendered descendant list. * * Pass `props.index` to explicitly specify the index of the descendant in SSR environments. Doing * so will override the DOM index order. */ export declare const useDescendant: (context: DescendantContextType, fwdRef?: RefObject | ForwardedRef, props?: ComponentProps) => UseDescendantReturnObject; export {}; //# sourceMappingURL=useDescendant.d.ts.map