/**
* This file contains code adapted from the Chakra UI project.
*
* Copyright (c) [year(s)], Adobe Inc. and other contributors.
* All rights reserved.
*
* This source code is licensed under the Apache License, Version 2.0
* found in the LICENSE.txt file at the root directory of this source tree.
*/
///
import { DescendantOptions, DescendantsManager } from './descendant';
export type ReactRef = React.RefCallback | React.MutableRefObject;
export declare function assignRef(ref: ReactRef | null | undefined, value: T): void;
export declare function mergeRefs(...refs: Array | null | undefined>): (node: T | null) => void;
/**
* @internal
* React hook that initializes the DescendantsManager
*/
declare function useDescendants = object>(): DescendantsManager;
export type UseDescendantsReturn = ReturnType;
export declare function createDescendantContext = object>(): readonly [import("react").Provider>, () => DescendantsManager, () => DescendantsManager, (options?: DescendantOptions) => {
descendants: DescendantsManager>;
index: number;
enabledIndex: number;
register: (node: T) => void;
}];
export {};