import type { Observable } from "rxjs"; import { IframeApiContribution } from "./IframeApiContribution"; import type { MapEditorArea } from "./MapEditor/MapEditorArea"; declare class WorkadventureMapEditorAreaCommands extends IframeApiContribution { callbacks: never[]; /** * Listens to the position of the current user. The event is triggered when the user enters a given area. * {@link https://docs.workadventu.re/map-building/api-mapeditor.md#detecting-when-the-user-entersleaves-an-area | Website documentation} * * @param {string} areaName Area name * @returns {Subject} An observable fired when someone enters the area */ onEnter(areaName: string): Observable<{ reason: "initial" | "move"; }>; /** * Listens to the position of the current user. The event is triggered when the user leaves a given area. * {@link https://docs.workadventu.re/map-building/api-mapeditor.md#detecting-when-the-user-entersleaves-an-area | Website documentation} * * @param {string} areaName Area name * @returns {Subject} An observable fired when someone leaves the area */ onLeave(areaName: string): Observable<{ reason: "initial" | "move"; }>; private wamMapCache; /** * Returns a promise that resolves to the WAM map file. * The WAM is cached in memory. * * @returns {Promise} Map in Tiled JSON format */ private getWamMap; /** * Returns a list of areas defined in the map editor. * * @returns {Promise} List of areas */ list(): Promise; } export declare class WorkadventureMapEditorCommands extends IframeApiContribution { callbacks: never[]; get area(): WorkadventureMapEditorAreaCommands; } declare const _default: WorkadventureMapEditorCommands; export default _default;