import Core, { SendOption, SendSuccess, SendFail } from "../../core/src"; import { MarkDoms, WebConfig } from './interface'; export default class Aegis extends Core { static sessionID: string; sendNow: boolean; isReportReady: boolean; reportRequestQueue: { options: SendOption; success?: SendSuccess; fail?: SendFail; }[]; private resolvedGzipConfig; private static compressionSupported; /** 将 config.gzip(经 Object.assign 合并后)归一化为内部统一结构 */ private static resolveGzipConfig; firstScreenInfo: { element: Element; timing: number; markDoms: MarkDoms; }; constructor(config: WebConfig); private addExtBean; getBean(filter?: string[]): string; private getCurrentPageUrl; getOriginFrom(): string; /** * 手动上报页面 PV。 * * 适用于 SDK 自动 PV 保持开启、但业务在隐藏态通过 beforeRequest 临时拦截后, * 在页面恢复可见时主动补报一次当前页面 PV。 * * @param pageUrl 可选,手动指定本次 PV 的 from 页面地址;不传时沿用当前页面计算结果。 */ reportPageView(pageUrl?: string): void; ready(): void; request(_options: SendOption, _success?: SendSuccess, _fail?: SendFail): void; private $request; /** 异步压缩后发送 */ private sendWithGzip; /** 底层 XHR 发送 */ private sendXhr; speedLogPipeline: import("../../core/src").Pipeline; publishPluginsLogs(): void; uploadLogs(params?: any, conds?: any): void; /** * 手动上报 Web Vitals 数据 * 当配置 webVitals: { manualReport: true } 时,客户可以调用此方法手动触发上报 * @param customData 可选的自定义 Web Vitals 数据,如果不传则使用 SDK 采集的数据 * @example * // 使用 SDK 采集的数据 * aegis.reportWebVitals(); * * // 使用自定义数据 * aegis.reportWebVitals({ LCP: 2500, FCP: 1800 }); * * // 部分自定义,其他使用 SDK 采集的数据 * aegis.reportWebVitals({ LCP: 2500 }); */ reportWebVitals(customData?: Partial<{ FCP?: number; LCP?: number; FID?: number; CLS?: number; INP?: number; TTI?: number; from?: string; }>): void; }