render.d.ts 612 B

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