import { FunctionModule } from './FunctionModule';
import { IDisposable } from '../base/IDisposable';
/**
 * 资源项
 */
export interface ResItem {
    /**
     * ID
     */
    id: string;
    /**
     * 文件扩展名
     */
    ext: string;
    /**
     * 名称
     */
    name: string;
}
export type EntityItem = {
    id: string;
    name: string;
    children?: EntityItem[];
};
export type PollingLink = {
    building_id: string;
    building_name: string;
    link_id: string;
    link_name: string;
};
/**
 * 运行时
 */
export declare class RunTime implements IDisposable {
    /**
     * 获取项目文件的资源列表（不实例化App）
     * @param projectFile 项目文件地址
     */
    static getProjectResList(projectFile: string): Promise<ResItem[]>;
    /**
     * 获取项目文件的序列号
     * @param projectFile 项目文件地址
     */
    static getProjectSerialNum(projectFile: string): Promise<string>;
    /**
     * 获取项目文件的园区列表
     * @param projectFile 项目文件地址
     */
    static getCampuses(projectFile: string): Promise<EntityItem[]>;
    /**
     * 获取项目文件的主要层级列表
     * @param projectFile 项目文件地址
     */
    static getMainLevel(projectFile: string): Promise<EntityItem[]>;
    /**
     * 获取功能模块
     * @param projectFile 项目文件地址
     * @param licenseFile 授权文件地址
     */
    static getFunctionModule(projectFile: string, licenseFile: string): Promise<FunctionModule[]>;
    /**
     * 获取完整授权信息
     * @param projectFile 项目文件地址
     * @param licenseFile 授权文件地址
     */
    static getFullLicenseInfo(projectFile: string, licenseFile: string): Promise<{
        serialNum: string;
        info: string;
        modules: FunctionModule[];
    }>;
    /**
     * 获取温度云图列表
     * @param projectFile 项目文件地址
     */
    static getHeatmapList(projectFile: string): Promise<EntityItem[]>;
    /**
     * 应用
     */
    app: any;
    private _loaded;
    /**
     * 实例化一个运行时对象
     * @param app 应用
     */
    constructor(app: any);
    /**
     * 截图
     * @param width 宽度
     * @param height 高度
     * @returns base64字符串
     */
    screenShot(width: number, height: number): Promise<string>;
    /**
     * 创建默认截图并保存
     */
    createDefaultScreenShotAndSave(): void;
    /**
     * 获取授权信息
     */
    getLicenseInfo(): string;
    /**
     * 获取序列号
     */
    getSerialNum(): string;
    /**
     * 动环监控模块
     */
    hasPowerEnvir(): boolean;
    /**
     * 资产容量模块
     */
    hasAssetVolume(): boolean;
    /**
     * 配线拓扑模块
     */
    hasLink(): boolean;
    /**
     * 档案库房模块
     */
    hasArchive(): boolean;
    /**
     * IT网管模块
     */
    hasIt(): boolean;
    /**
     * 持久化成项目文件
     */
    toProjectFile(): Promise<Uint8Array>;
    /**
     * 加载项目
     */
    loadProject(): Promise<void>;
    /**
     * 释放
     */
    dispose(): void;
}
