amis-rpc-design/node_modules/rc-util/es/React/render.d.ts
2023-10-07 19:42:30 +08:00

14 lines
612 B
TypeScript

import type * as React from 'react';
import type { Root } from 'react-dom/client';
declare const MARK = "__rc_react_root__";
type ContainerType = (Element | DocumentFragment) & {
[MARK]?: Root;
};
/** @private Test usage. Not work in prod */
export declare function _r(node: React.ReactElement, container: ContainerType): void;
export declare function render(node: React.ReactElement, container: ContainerType): void;
/** @private Test usage. Not work in prod */
export declare function _u(container: ContainerType): void;
export declare function unmount(container: ContainerType): Promise<void>;
export {};