UNPKG

935 BTypeScriptView Raw
1import { ReactPortal } from "react";
2import { ReactComponent } from "./reactComponent";
3export declare class PortalManager {
4 private static MAX_COMPONENT_CREATION_TIME_IN_MS;
5 private refresher;
6 private wrappingElement;
7 private destroyed;
8 private portals;
9 private hasPendingPortalUpdate;
10 private maxComponentCreationTimeMs;
11 constructor(refresher: () => void, wrappingElement?: string, maxComponentCreationTimeMs?: number);
12 getPortals(): ReactPortal[];
13 destroy(): void;
14 destroyPortal(portal: ReactPortal): void;
15 getComponentWrappingElement(): string | undefined;
16 mountReactPortal(portal: ReactPortal, reactComponent: ReactComponent, resolve: (value: any) => void): void;
17 updateReactPortal(oldPortal: ReactPortal, newPortal: ReactPortal): void;
18 private batchUpdate;
19 waitForInstance(reactComponent: ReactComponent, resolve: (value: any) => void, startTime?: number): void;
20}