UNPKG

612 BTypeScriptView Raw
1import type * as React from 'react';
2import type { Root } from 'react-dom/client';
3declare const MARK = "__rc_react_root__";
4type ContainerType = (Element | DocumentFragment) & {
5 [MARK]?: Root;
6};
7/** @private Test usage. Not work in prod */
8export declare function _r(node: React.ReactElement, container: ContainerType): void;
9export declare function render(node: React.ReactElement, container: ContainerType): void;
10/** @private Test usage. Not work in prod */
11export declare function _u(container: ContainerType): void;
12export declare function unmount(container: ContainerType): Promise<void>;
13export {};