import type { ReactNode } from "react"; import React from "react"; import type { ReactComponentProps } from "./ReactComponentTokenizer"; export interface ReactComponentRendererProps { props: ReactComponentProps; children?: ReactNode; } export type ReactComponentRenderer = (props: ReactComponentRendererProps) => ReactNode; export type ReactComponentRegistry = Record; interface ReactComponentRegistryContextValue { components: ReactComponentRegistry; getComponent: (name: string) => ReactComponentRenderer | undefined; hasComponent: (name: string) => boolean; } interface ReactComponentRegistryProviderProps { components: ReactComponentRegistry; children: ReactNode; } export declare function ReactComponentRegistryProvider({ components, children, }: ReactComponentRegistryProviderProps): React.JSX.Element; export declare function useReactComponentRegistry(): ReactComponentRegistryContextValue | null; export {}; //# sourceMappingURL=ReactComponentRegistry.d.ts.map