aegis.d.ts 716 B

123456789101112131415161718
  1. import Core, { Config, SendOption, SendSuccess, SendFail } from "../../core/src";
  2. export interface RNConfig extends Config {
  3. reportApiSpeed?: boolean;
  4. beforeReportSpeed?: Function;
  5. }
  6. export default class Aegis extends Core {
  7. static sessionID: string;
  8. static asyncPluginIndex: number;
  9. originRequest: typeof fetch;
  10. speedLogPipeline: import("../../core/src").Pipeline<any, any>;
  11. constructor(config: RNConfig);
  12. get getBean(): string;
  13. reportError(...msg: any): void;
  14. request: (options: SendOption, success?: SendSuccess | undefined, fail?: SendFail | undefined) => void;
  15. uploadLogs(params?: any, conds?: any): void;
  16. getAsyncStorage(): any;
  17. private getCurrentPageUrl;
  18. }