UNPKG

osmos-web-sdk

Version:

OnlineSales.ai Web SDK for Vue and React projects

40 lines 957 B
import { OsmosSDKOptions, DeviceType } from './types'; import { AdFetcher } from './services/ad-fetcher'; import { TrackingService } from './services/tracking-service'; export declare class OsmosSDK { private options; private deviceDetector; private _adFetcher; private trackingService; private isInitialized; constructor(); /** * 初始化SDK */ initialize(options: OsmosSDKOptions): void; /** * 更新SDK选项 */ updateOptions(options: Partial<OsmosSDKOptions>): void; /** * 获取当前设备类型 */ getDevice(): DeviceType; /** * 获取广告获取器 */ get adFetcher(): AdFetcher; /** * 获取跟踪服务 */ get tracking(): TrackingService; /** * 检查SDK是否已初始化 */ isReady(): boolean; /** * 获取当前配置 */ getConfig(): OsmosSDKOptions; } //# sourceMappingURL=osmos-sdk.d.ts.map