1 | import * as React from 'react';
|
2 | declare type State = {
|
3 | portals: Array<{
|
4 | key: number;
|
5 | children: React.ReactNode;
|
6 | }>;
|
7 | };
|
8 | /**
|
9 | * Portal host is the component which actually renders all Portals.
|
10 | */
|
11 | export default class PortalManager extends React.PureComponent<{}, State> {
|
12 | state: State;
|
13 | mount: (key: number, children: React.ReactNode) => void;
|
14 | update: (key: number, children: React.ReactNode) => void;
|
15 | unmount: (key: number) => void;
|
16 | render(): React.JSX.Element[];
|
17 | }
|
18 | export {};
|
19 | //# sourceMappingURL=PortalManager.d.ts.map |
\ | No newline at end of file |