/** * https://github.com/chakra-ui/chakra-ui/tree/5ec0be610b5a69afba01a9c22365155c1b519136/packages/components/descendant */ import React from "react"; import { DescendantOptions, DescendantsManager } from "./descendant"; /** * Provides strongly typed versions of the context provider and hooks above. */ declare function createDescendantContext = object>(): readonly [React.Provider>, (strict?: S | undefined) => S extends true ? DescendantsManager : DescendantsManager | undefined, () => DescendantsManager, (options?: DescendantOptions) => { descendants: DescendantsManager; index: number; enabledIndex: number; register: ((instance: T | null) => void) | null; }]; export { createDescendantContext };