UNPKG

fingerprint-oss

Version:

A comprehensive JavaScript library for device fingerprinting and system information collection. Provides robust, deterministic fingerprinting for web applications with privacy-conscious design.

66 lines (65 loc) 1.75 kB
/** * Returns a mock system information object simulating browser, device, and environment attributes for testing. * * The returned object includes representative values for browser details, device properties, operating system, feature support, graphics capabilities, font preferences, incognito status, bot detection metrics, and a mathematical constants fingerprint. * * @returns A mock object containing system information fields suitable for use in tests. */ export declare function getMockSystemInfo(): { userAgent: string; platform: string; languages: string[]; cookiesEnabled: boolean; doNotTrack: null; screenResolution: [number, number]; colorDepth: number; colorGamut: string; hardwareConcurrency: number; deviceMemory: number; os: { os: string; version: string; }; audio: null; localStorage: boolean; sessionStorage: boolean; indexedDB: boolean; webGL: { vendor: string; renderer: string; imageHash: null; }; canvas: { winding: boolean; geometry: string; text: string; }; plugins: never[]; timezone: string; touchSupport: { maxTouchPoints: number; touchEvent: boolean; touchStart: boolean; }; vendor: string; vendorFlavors: string[]; mathConstants: import("./types").MathInfo; fontPreferences: { detectedFonts: never[]; }; incognito: { isPrivate: boolean; browserName: string; }; browser: { name: string; version: string; }; bot: { isBot: boolean; signals: never[]; confidence: number; }; confidenceScore: number; hash: string; };