import type React from 'react'; import { BehaviorSubject } from 'rxjs'; import type GlobalPortalItemType from './GlobalPortalItemType'; /** * 全局弹窗 */ declare const globalPortals$: BehaviorSubject; /** * 显示弹窗 * * @param id 弹窗id * @param content 弹窗内容 */ export declare const showPortal: (id: string, content: React.ReactNode) => (() => void); /** * 隐藏弹窗 * * @param id 弹窗id */ export declare const hidePortal: (id: string) => void; export default globalPortals$;