import { Modal } from "bootstrap"; export interface ModalOptions { /** * Called before the data is fetched. */ onLoad?: (sender: HTMLElement) => void; /** * Called before the fetched HTML is rendered to the list. Must return the data back to datalist to render. */ onRender?: (sender: HTMLElement, html: string) => string; /** * Called when loading and rendering is complete. */ onComplete?: (sender: HTMLElement) => void; /** * Called when loading and rendering is complete. */ onHidden?: (sender: HTMLElement) => void; /** * Called when loading and rendering is complete. */ onError?: (jqXHR: any, textStatus: any, errorThrown: any) => void; closePrevious?: boolean; } export declare class ModalController { element: HTMLElement; modal: Modal; isOpen: boolean; options: ModalOptions; constructor(options?: ModalOptions); show(url: string | URL, sender?: HTMLElement): void; close(): void; dispose(): void; createElementFromHTML(htmlString: string): HTMLElement; }