import { ReactNode } from 'react'; type PortalHostProps = { children: ReactNode; pageId: number; }; export type Operation = { type: 'mount'; key: number; children: ReactNode; } | { type: 'update'; key: number; children: ReactNode; } | { type: 'unmount'; key: number; }; declare class PortalGuard { private nextKey; add: (e: ReactNode, id: number | null) => number; remove: (key: number) => void; update: (key: number, e: ReactNode) => void; } /** * portal */ export declare const portal: PortalGuard; declare const PortalHost: ({ children }: PortalHostProps) => JSX.Element; export default PortalHost;