import Core, { Config, SendOption, SendSuccess, SendFail } from '@tencent/aegis-core'; import './util/polyfill'; export interface QuickappConfig extends Config { reportApiSpeed?: boolean; beforeReportSpeed?: Function; offlineLogLimit?: number; tjg?: boolean; offlineLog?: boolean; dbConfig?: any; offlineLogExp?: number; } export default class Aegis extends Core { static __version__: string; static sessionID: string; originRequest: (url: string, options: any) => Promise; aegisFetch: (url: string, options: any) => Promise; speedLogPipeline: import("../../core/src").Pipeline; constructor(config: QuickappConfig); initOfflineLog(): void; get getBean(): string; send: (options: SendOption, success?: SendSuccess | undefined, fail?: SendFail | undefined) => void; uploadLogs(params?: any, conds?: any): void; /** * @description 读取离线日志,在offlineLogPlugin中会重写改方法 */ getOfflineLog(): void; /** * @description 上报离线日志,在offlineLogPlugin中会重写改方法 * @param logs 日志 */ uploadOfflineLogs(logs: any | any[]): void; getFetch(): (url: string, options: any) => Promise; }