UNPKG

@trlogic/tracker-web

Version:
17 lines (16 loc) 715 B
import { NetworkService } from "src/core/contract/NetworkService"; import { Event } from "src/core/model/Event"; import { EventResult } from "src/core/model/EventResult"; import { TrackerConfig } from "src/core/model/TrackerConfig"; import { TrackerConfiguration } from "src/core/model/TrackerConfiguration"; /** * Default network service implementation using Fetch API. * Mirrors Android DefaultNetworkService. */ export declare class DefaultNetworkService implements NetworkService { private configuration; constructor(configuration: TrackerConfiguration); fetchConfiguration(): Promise<TrackerConfig>; sendEvent(event: Event): Promise<EventResult | null>; isNetworkAvailable(): boolean; }