import { IframeApiContribution } from "../IframeApiContribution"; import type { ModalEvent } from "../../Events/ModalEvent"; export declare class WorkadventureModalCommands extends IframeApiContribution { private _closeCallback?; callbacks: { type: "modalCloseTrigger"; callback: (event: { title: string; allowApi: boolean; position: "left" | "right" | "center"; closable: boolean; allow: string | null; src: string; allowFullScreen: boolean; }) => void; }[]; /** * Open instantly the modal window. * {@link http://workadventure.localhost/map-building/api-ui.md#open-the-modal-iframe | Website documentation} */ openModal(modalEvent: ModalEvent, closeCallback?: (arg: ModalEvent) => void): void; /** * Close instantly the modal window. * {@link http://workadventure.localhost/map-building/api-ui.md#close-the-chat-window | Website documentation} */ closeModal(): void; } declare const _default: WorkadventureModalCommands; export default _default;