import { Raw } from './guard.js'; /** Version of the id definition. Ids are comparable only within one version. */ export declare const ID_VERSION = 3; export type Parts = { [key: string]: Raw; }; /** Sorted "key=value" lines joined by "\n": the exact text that is hashed, so a server can recompute an id. */ export declare function canonical(parts: Parts): string; /** The id of a set of parts, or null when a read failed: an id from a partial set would differ from the next complete one. */ export declare function makeId(parts: Parts): { id: string | null; partial: string[]; }; /** The names of the reads that failed or timed out, sorted. Never throws: `for...in` and an index are not built-ins a page can replace. */ export declare function failed(parts: Parts): string[]; /** The values an id is built from: hardware ("hw.") and settings ("p."). Every other value is a hint. */ export declare function idParts(parts: Parts): Parts; /** The OS version from client hints, for a user agent that hides it. "17.0.0" is written "17", as an in-app browser that names it writes it. */ export declare function hintedOs(c: Parts): string | null; /** The version fields a strict id adds. A reading has them all. */ export interface Versions { osVer: string | null; app: string; appVer: string | null; engineVer: number | null; } /** * Completes the id parts in `c` from the values read so far and returns both ids. `skip` names what this browser randomises. * It touches no browser object, so the lab can replay it on the values a test page stored. */ export declare function seal(c: Parts, skip: { [name: string]: boolean; }, versions: Versions): { id: string | null; idStrict: string | null; };