@trlogic/tracker-web
Version:
Formica Tracker Web SDK
23 lines (22 loc) • 821 B
TypeScript
import { CachedDataCollector } from "src/core/base/CachedDataCollector";
import { TrackerVariableType } from "src/core/model/TrackerVariableType";
/**
* Collects device/browser/environment information.
* Mirrors Android DeviceCollector — adapted for web environment.
*/
export declare class DeviceCollector extends CachedDataCollector {
private fingerprintPromise;
private resolvedFingerprint;
private initTimestamp;
collect(): Map<TrackerVariableType, unknown>;
/**
* Returns the resolved fingerprint synchronously if available,
* otherwise returns the pending Promise.
*/
private getFingerprint;
/**
* Pre-load fingerprint so it's ready when collect() is called.
* Must be awaited before the first event fires.
*/
initFingerprint(): Promise<string>;
}