UNPKG

@govuk-one-login/frontend-device-intelligence

Version:
18 lines 1.23 kB
import { type ComponentInterface } from "../components/index"; export declare function getFingerprintData(): Promise<ComponentInterface>; /** * This function filters the fingerprint data based on the exclude and include list * @param {ComponentInterface} obj - components objects from main ComponentInterface * @param {string[]} excludeList - elements to exclude from components objects (e.g : 'canvas', 'system.browser') * @param {string[]} includeList - elements to only include from components objects (e.g : 'canvas', 'system.browser') * @param {string} path - auto-increment path iterating on key objects from components objects * @returns {ComponentInterface} result - returns the final object before hashing in order to get fingerprint */ export declare function filterFingerprintData(obj: ComponentInterface, excludeList: string[], includeList: string[], path?: string): ComponentInterface; export declare function getFingerprint(includeData?: false): Promise<string>; export declare function getFingerprint(includeData: true): Promise<{ hash: string; data: ComponentInterface; }>; export declare function setFingerprintCookie(cookieDomain?: string): Promise<void>; //# sourceMappingURL=functions.d.ts.map