import { HttpClient } from '@angular/common/http'; export interface IMapItem { expiry: number; data: T; } export interface IMapNode { id: string; [name: string]: any; children?: IMapNode[]; } export declare class MapService { private http; private maps; private map_trees; logs: { warning_ids: string[]; warnings: string[]; errors: string[]; }; constructor(http: HttpClient); /** * Loads the map with the given URL * @param url URL of the map to load * @returns Promise of the raw map file, errors with reason */ loadMap(url: string): Promise; /** * Loads the map tree of the map with the give URL * @param url URL of the map */ loadMapTree(url: string): Promise<{}>; /** * Gets the map tree of the map with the given URL * @param url URL of the map * @returns Element tree of the map */ getMapTree(url: string): IMapNode; /** * Sets the map tree of the map with the given URL * @param url URL of the map tree's file * @param tree Element position tree of the given map URL * @param expire Sets whether the tree data will expire */ setMapTree(url: string, tree: IMapNode, expire?: boolean): void; /** * Clears all the cached map data */ clear(): void; log(type: string, msg: string, id?: string, data?: any): void; }