export interface typeInitOptions { searchList?: Array; plugins?: Array>; presets?: Array>; hooks?: Array; onInit?(any): any; onLifecycle?(any): any; onError?(any): any; } export interface HookConstructor { new (any?); } export interface typeUserConfig { plugins?: Array>, presets?: Array> } export interface typeUtils { isArray(param: any): boolean; isString(param: any): boolean; isFunction(param: any): boolean; } export type typePluginPresetArray = Array; export type typePluginPresetUserItem = string | Array | Function; export interface typeContext { hooks: object; Hooks: HookConstructor, [ name: string ]: any, } export interface typeStandardPluginPresetItem { value: FunctionConstructor | { apply: (data?: any) => any, [name: string]: any }; options: any; } export type eventListType = Array<{ name: string, callback: Function | Promise }>;