import type { CreateUIWebsiteEvent, UIWebsiteMargin, UIWebsitePosition, UIWebsiteSize, UIWebsiteEvent } from "../../Events/Ui/UIWebsiteEvent"; import { IframeApiContribution } from "../IframeApiContribution"; export declare class UIWebsite { readonly id: string; private _url; private _visible; private readonly _allowPolicy; private readonly _allowApi; private _position; private _size; private _margin; constructor(config: UIWebsiteEvent); get url(): string; set url(url: string); get visible(): boolean; set visible(visible: boolean); get allowPolicy(): string; get allowApi(): boolean; get position(): UIWebsitePosition; set position(position: UIWebsitePosition); get size(): UIWebsiteSize; set size(size: UIWebsiteSize); get margin(): UIWebsiteMargin; set margin(margin: UIWebsiteMargin); close(): Promise; } export declare class UIWebsiteCommands extends IframeApiContribution { callbacks: never[]; /** * Open an iFrame that is fixed in the viewport. Use this for advanced popups, additional buttons in the UI, HUD, etc... Returns a promise of a UIWebsite instance. * {@link https://docs.workadventu.re/map-building/api-ui.md#display-a-ui-website | Website documentation} * * @param {CreateUIWebsiteEvent} createUIWebsite The details of the UIWebsite to create * @returns {Promise} Promise to return a UIWebsite */ open(createUIWebsite: CreateUIWebsiteEvent): Promise; /** * Returns all UI websites (iframes positionned on the viewport) * {@link https://docs.workadventu.re/map-building/api-ui.md#get-all-ui-websites | Website documentation} * * @returns {Promise} Promise to return all UI websites */ getAll(): Promise; /** * Returns one UI website (iframe positionned on the viewport) by ID. * {@link https://docs.workadventu.re/map-building/api-ui.md#get-all-ui-websites | Website documentation} * @param {string} id The id of the UIWebsite * @returns {Promise} Promise to return UI website */ getById(id: string): Promise; } declare const _default: UIWebsiteCommands; export default _default;