import { Observable } from "rxjs"; type EnterLeaveAction = "enter" | "leave"; type EnterLeaveEvent = { reason: "initial" | "move"; }; /** * Register an observer that will trigger when a layer / Tiled area / Map Editor area is entered or left. * The actual registration happens on first subscribe and is stopped on last subscribe. * The port is shared among all subscribers (opened once, closed when the last subscriber unsubscribes). * If the user is already in the correct state when subscribing, the observable triggers immediately * (except for the very first subscriber: the server side sends the current state on port creation). */ export declare function getEnterLeaveObservable(type: "layer" | "tiledArea" | "mapEditorArea", action: EnterLeaveAction, name: string): Observable; export {};