import { JSDOM } from 'jsdom';
export interface EnvironmentOptions {
    dashboardId: string;
    finebiServerUrl: string;
    scripts?: string[];
    html?: string;
    baseUrl?: string;
}
/**
 * 设置模拟的 Web 端运行环境
 */
export declare function createBrowserEnvironment(options: EnvironmentOptions): Promise<{
    window: import("jsdom").DOMWindow;
    document: Document;
    dom: JSDOM;
}>;
/**
 * 初始化仪表板配置环境
 * 访问仪表板 view 页面，提取 body 下的第一个 script 标签内的内容并解析出 BI 属性
 */
export declare function initDashboardDesignConfigure(dashboardId: string, serverUrl: string): Promise<{
    rawScript: string;
    BI: any;
}>;
/**
 * 获取仪表板customPool
 * 访问 /v5/cache/report/pool/custom 接口，取回数据塞入 BI.pool
 */
export declare function initDashboardCustomPoolEnv(dashboardId: string, serverUrl: string): Promise<any>;
/**
 * 加载指定的后续依赖包
 * 下载或者读取本地的依赖 js 并挂载到给定的 window 环境上
 */
export declare function loadDependencies(window: any, scripts: string[], serverUrl?: string): Promise<void>;
