/** * Raw environment observations sent to the API next to `components`, which the * API uses to compute `info.signals`. They are never part of the fingerprint, * never returned to the caller, and never sent anywhere except the API request * and the sampled diagnostic log. * * Every key is optional: a key is omitted when it could not be determined * (unsupported API, a probe that threw, or one that had not resolved yet when * the snapshot was taken), so a missing key is not the same as a negative * result. Values are raw facts; the client does no classification. */ export interface ObservationsInterface { /** Schema version. Always present, so the API can tell "nothing determinable" from an older client. */ v: 1; /** UNMASKED_VENDOR_WEBGL, read through WEBGL_debug_renderer_info (on Gecko the plain VENDOR, which is already unmasked). */ webglVendorUnmasked?: string; /** UNMASKED_RENDERER_WEBGL, read through WEBGL_debug_renderer_info (on Gecko the plain RENDERER, which is already unmasked). */ webglRendererUnmasked?: string; /** Sorted MediaCapabilities verdicts, e.g. `h264:supported+smooth+powerEfficient`, `av1:unsupported` or `vp9:error`. */ mediaDecode?: string[]; /** navigator.webdriver as-is; omitted when it is not a boolean. */ webdriver?: boolean; /** Names of legacy automation-driver globals found on the global object (including `cdc_` prefixed ones). */ automationGlobals?: string[]; /** Engine families (`blink`, `gecko`, `webkit`) whose engine-specific API marker is present. */ engineApiMarkers?: string[]; /** Navigator accessors (`hardwareConcurrency`, `userAgent`, `platform`, `language`) that are own properties of `navigator`. */ navigatorAccessorOverrides?: string[]; /** Navigator.prototype getters that returned normally for a foreign receiver instead of throwing. */ getterNativeSourceTamper?: string[]; /** navigator.hardwareConcurrency, unaffected by `stabilize`. */ hardwareConcurrency?: number; /** Prototype-only methods (`push`, `hasOwnProperty`, `bind`, `getTime`, `createElement`) that exist as own properties. */ overriddenPrototypeMethods?: string[]; /** Generic ad-slot class names whose bait element collapsed to no box. */ adBaitBlocked?: string[]; /** * Number of bytes that differ between two immediate reads of the same * unmodified 16x16 canvas. Always 0 in an unmodified browser; above 0 means * the canvas output is being altered per read (noise from a privacy-hardened * browser or an anti-fingerprinting extension). */ canvasReadbackDiffBytes?: number; } type ObservationKey = Exclude; /** Exported only so tests can swap in a slow probe. */ export declare const PROBES: Record unknown>; /** Handle to a running collection. */ export interface ObservationsCollection { /** * A copy of every key that has resolved so far. Returns immediately and * never waits for a pending probe, whose key is simply absent; a later call * includes it once it has resolved. */ snapshot(): ObservationsInterface; } /** * Starts collecting observations. There is no time budget of its own: the * collection is read with `snapshot()` when the request or log is built, and * whatever has resolved by then is what is sent. Probes start right away and * run in parallel, off the calling stack (after the current synchronous work), * each isolated: a probe that throws omits only its own key. `exclude`, * `include` and `stabilize` do not apply to observations. */ export declare function collectObservations(): ObservationsCollection; export {};