UNPKG

@ibsheet/loader

Version:

Dynamically load support module for IBSheet

38 lines (37 loc) 1.38 kB
import { CustomEventEmitter } from './custom'; import { IntervalManager } from './shared/interval-manager'; import { IBSheetInstance } from './ibsheet'; import { LoaderConfigOptions } from './config'; import { LoaderRegistry } from './registry'; import { RegisteredItem, LoaderStatus } from './interface'; export declare class IBSheetLoaderStatic extends CustomEventEmitter { private _status; private _ready; private _loadTaskMan; private _unloadTaskMan; private _options; private _ibsheet; intervalMan: IntervalManager; registry: LoaderRegistry; constructor(); readonly debug: boolean; readonly version: string; readonly ready: boolean; readonly status: LoaderStatus; readonly options: LoaderConfigOptions; readonly loadedDefaultLib: boolean; private _getDefaultRegItem; private _initTasksManagers; config(options?: LoaderConfigOptions): this; getOption(sPath: string, def?: any): any; info(alias: string): string | undefined; list(): RegisteredItem[]; getIBSheetStatic(): any; load(arg?: any, alsoDefaultLib?: boolean): this; createSheet(options: any): Promise<IBSheetInstance>; removeSheet(sid: string): void; sheetReady(callback?: (ibsheet?: any) => void): any; reload(arg?: string | string[]): this; unload(params?: string | string[]): this; reset(): this; }