import { Component } from 'vue'; import { OpenModalOptions, ShowLoadingOptions } from '../interfaces'; export declare function useModal(): { open: { (component: "confirm", props: { title?: string; content: string; onOk?: () => Promise | void; onCancel?: () => Promise | void; footer?: () => JSX.Element; }): Promise & { close: () => void; }; (component: "info" | "warning" | "error" | "success", props: { title?: string; content: string; }): Promise & { close: () => void; }; (component: Component, props?: Record, options?: OpenModalOptions): Promise & { close: () => void; }; }; close(data?: any): void; closeAll(): void; showLoading(options?: ShowLoadingOptions): () => void; hideLoading(): void; confirm(props: { title?: string; content: string; onOk?: () => Promise | void; onCancel?: () => Promise | void; footer?: () => JSX.Element; }): Promise & { close: () => void; }; info(props: { title?: string; content: string; }): Promise & { close: () => void; }; error(props: { title?: string; content: string; }): Promise & { close: () => void; }; warning(props: { title?: string; content: string; }): Promise & { close: () => void; }; success(props: { title?: string; content: string; }): Promise & { close: () => void; }; };