import { Observable } from 'rxjs'; export interface LazyResult { path: string; loaded: boolean; status: 'ok' | 'error'; error?: {}; } /** * 延迟加载资源(js 或 css)服务 */ export declare class LazyService { private doc; private list; private cached; private _notify; constructor(doc: any); get change(): Observable; clear(): void; load(paths: string | string[]): Promise; loadScript(path: string, innerContent?: string): Promise; loadStyle(path: string, rel?: string, innerContent?: string): Promise; }