import { type Component, type ComponentInternalInstance } from 'vue'; import { type PopWindowProps } from './interface'; /** * 显示弹出窗口 * * 此函数用于创建并显示一个弹出窗口,支持自定义样式和内容通过参数传递 * 可以选择附加到特定的父元素,并且在渲染后会将自身添加到弹出窗口列表中 * * @param props 弹出窗口的属性,包括位置、尺寸等样式属性以及附加属性 * @param component 可选参数,用于指定弹出窗口内渲染的自定义组件类型,如果props中传了render函数,则无效 * @param componentProps 可选参数,传递给自定义组件的属性 */ export declare const showPopWindow: (props: PopWindowProps, component?: Component, componentProps?: any) => { id: string; close: () => void; }; export declare const closePopWindowById: (id: string) => void; export declare const closePopWindowByTag: (tag: string) => void; export declare const getAllPopWindows: () => any[]; export declare const initPopWindow: (ctx?: ComponentInternalInstance) => { showPopWindow: (props: PopWindowProps, component?: Component, componentProps?: any) => { id: string; close: () => void; }; };