import Component, { IComponentOptions } from '../share/Component'; import I18n from 'licia/I18n'; export interface IOptions extends IComponentOptions { title?: string; content?: string | HTMLElement; footer?: string | HTMLElement; width?: number; showClose?: boolean; } export default class Modal extends Component { static i18n: I18n; private $title; private $body; private $content; private $close; private $footer; constructor(container: HTMLElement, options?: IOptions); show(): void; hide(): void; destroy(): void; renderContent(): void; static alert(msg: string): Promise; static confirm(msg: string): Promise; static prompt(title?: string, defaultText?: string): Promise; static setContainer(container: HTMLElement): void; private bindEvent; private render; private initTpl; }