import { SourcesToComponents } from '../utils/entropy_source'; import getAudioFingerprint from './audio'; import getFonts from './fonts'; import getPlugins from './plugins'; import getCanvasFingerprint from './canvas'; import getTouchSupport from './touch_support'; import getOsCpu from './os_cpu'; import getLanguages from './languages'; import getColorDepth from './color_depth'; import getDeviceMemory from './device_memory'; import getScreenResolution from './screen_resolution'; import { getRoundedScreenFrame } from './screen_frame'; import getHardwareConcurrency from './hardware_concurrency'; import getTimezone from './timezone'; import getSessionStorage from './session_storage'; import getLocalStorage from './local_storage'; import getIndexedDB from './indexed_db'; import getOpenDatabase from './open_database'; import getCpuClass from './cpu_class'; import getPlatform from './platform'; import getVendor from './vendor'; import getVendorFlavors from './vendor_flavors'; import areCookiesEnabled from './cookies_enabled'; import getDomBlockers from './dom_blockers'; import getColorGamut from './color_gamut'; import areColorsInverted from './inverted_colors'; import areColorsForced from './forced_colors'; import getMonochromeDepth from './monochrome'; import getContrastPreference from './contrast'; import isMotionReduced from './reduced_motion'; import isHDR from './hdr'; import getMathFingerprint from './math'; import getFontPreferences from './font_preferences'; import getVideoCard from './video_card'; import isPdfViewerEnabled from './pdf_viewer_enabled'; import getArchitecture from './architecture'; /** * The list of entropy sources used to make visitor identifiers. * * This value isn't restricted by Semantic Versioning, i.e. it may be changed without bumping minor or major version of * this package. * * Note: Rollup and Webpack are smart enough to remove unused properties of this object during tree-shaking, so there is * no need to export the sources individually. */ export declare const sources: { fonts: typeof getFonts; domBlockers: typeof getDomBlockers; fontPreferences: typeof getFontPreferences; audio: typeof getAudioFingerprint; screenFrame: typeof getRoundedScreenFrame; canvas: typeof getCanvasFingerprint; osCpu: typeof getOsCpu; languages: typeof getLanguages; colorDepth: typeof getColorDepth; deviceMemory: typeof getDeviceMemory; screenResolution: typeof getScreenResolution; hardwareConcurrency: typeof getHardwareConcurrency; timezone: typeof getTimezone; sessionStorage: typeof getSessionStorage; localStorage: typeof getLocalStorage; indexedDB: typeof getIndexedDB; openDatabase: typeof getOpenDatabase; cpuClass: typeof getCpuClass; platform: typeof getPlatform; plugins: typeof getPlugins; touchSupport: typeof getTouchSupport; vendor: typeof getVendor; vendorFlavors: typeof getVendorFlavors; cookiesEnabled: typeof areCookiesEnabled; colorGamut: typeof getColorGamut; invertedColors: typeof areColorsInverted; forcedColors: typeof areColorsForced; monochrome: typeof getMonochromeDepth; contrast: typeof getContrastPreference; reducedMotion: typeof isMotionReduced; hdr: typeof isHDR; math: typeof getMathFingerprint; videoCard: typeof getVideoCard; pdfViewerEnabled: typeof isPdfViewerEnabled; architecture: typeof getArchitecture; }; /** * List of components from the built-in entropy sources. * * Warning! This type is out of Semantic Versioning, i.e. may have incompatible changes within a major version. If you * want to avoid breaking changes, use `UnknownComponents` instead that is more generic but guarantees backward * compatibility within a major version. This is because browsers change constantly and therefore entropy sources have * to change too. */ export type BuiltinComponents = SourcesToComponents; export interface BuiltinSourceOptions { debug?: boolean; } /** * Loads the built-in entropy sources. * Returns a function that collects the entropy components to make the visitor identifier. */ export default function loadBuiltinSources(options: BuiltinSourceOptions): () => Promise;