芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@fingerprintjs/fingerprintjs/dist/fp.d.ts
/** * FingerprintJS v3.0.6 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. * * This software contains code from open-source projects: * MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js) */ declare function x64hash128(key: string, seed?: number): string; declare function getAudioFingerprint(): Promise
; declare function getFonts(): string[]; interface PluginMimeTypeData { type: string; suffixes: string; } interface PluginData { name: string; description: string; mimeTypes: PluginMimeTypeData[]; } declare function getPlugins(): PluginData[] | undefined; interface CanvasFingerprint { winding: boolean; data: string; } declare function getCanvasFingerprint(): CanvasFingerprint; interface TouchSupport { maxTouchPoints: number; /** The success or failure of creating a TouchEvent */ touchEvent: boolean; /** The availability of the "ontouchstart" property */ touchStart: boolean; } /** * This is a crude and primitive touch screen detection. It's not possible to currently reliably detect the availability * of a touch screen with a JS, without actually subscribing to a touch event. * * @see http://www.stucox.com/blog/you-cant-detect-a-touchscreen/ * @see https://github.com/Modernizr/Modernizr/issues/548 */ declare function getTouchSupport(): TouchSupport; declare function getOsCpu(): string | undefined; declare function getLanguages(): string[][]; declare function getColorDepth(): number; declare function getDeviceMemory(): number | undefined; declare function getScreenResolution(): [number, number]; declare function getAvailableScreenResolution(): [number, number] | undefined; declare function getHardwareConcurrency(): number; declare function getTimezoneOffset(): number; declare function getTimezone(): string | undefined; declare function getSessionStorage(): boolean; declare function getLocalStorage(): boolean; declare function getIndexedDB(): boolean | undefined; declare function getOpenDatabase(): boolean; declare function getCpuClass(): string | undefined; /** * It should be improved to handle mock value on iOS: * https://github.com/fingerprintjs/fingerprintjs/issues/514#issuecomment-727782842 */ declare function getPlatform(): string; declare function getPluginsSupport(): boolean; declare function getProductSub(): string | undefined; declare function getEmptyEvalLength(): number; declare function getErrorFF(): boolean; declare function getVendor(): string; declare function getChrome(): boolean; /** * navigator.cookieEnabled cannot detect custom or nuanced cookie blocking configurations. For example, when blocking * cookies via the Advanced Privacy Settings in IE9, it always returns true. And there have been issues in the past with * site-specific exceptions. Don't rely on it. * * @see https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cookies.js Taken from here */ declare function areCookiesEnabled(): boolean; /** * 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. */ declare const sources: { osCpu: typeof getOsCpu; languages: typeof getLanguages; colorDepth: typeof getColorDepth; deviceMemory: typeof getDeviceMemory; screenResolution: typeof getScreenResolution; availableScreenResolution: typeof getAvailableScreenResolution; hardwareConcurrency: typeof getHardwareConcurrency; timezoneOffset: typeof getTimezoneOffset; timezone: typeof getTimezone; sessionStorage: typeof getSessionStorage; localStorage: typeof getLocalStorage; indexedDB: typeof getIndexedDB; openDatabase: typeof getOpenDatabase; cpuClass: typeof getCpuClass; platform: typeof getPlatform; plugins: typeof getPlugins; canvas: typeof getCanvasFingerprint; touchSupport: typeof getTouchSupport; fonts: typeof getFonts; audio: typeof getAudioFingerprint; pluginsSupport: typeof getPluginsSupport; productSub: typeof getProductSub; emptyEvalLength: typeof getEmptyEvalLength; errorFF: typeof getErrorFF; vendor: typeof getVendor; chrome: typeof getChrome; cookiesEnabled: typeof areCookiesEnabled; }; /** * A functions that returns data with entropy to identify visitor. * Source must handle expected errors by itself and turn them into entropy. * The return value must be compatible with `JSON.stringify` or be undefined. */ declare type Source
= (options: TOptions) => Promise
| TValue; /** * Generic dictionary of unknown sources */ declare type UnknownSources
= Record
>; /** * Converts an entropy source type to the source return value type */ declare type SourceValue
> = TSource extends Source
? T : never; /** * Result of getting entropy data from a source */ declare type Component
= ({ value: T; error?: undefined; } | { value?: undefined; error: Error | { message: unknown; }; }) & { duration: number; }; /** * Generic dictionary of unknown components */ declare type UnknownComponents = Record
>; /** * Converts an entropy source list type to a corresponding component list type. * * Warning for package users: * This type is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare type SourcesToComponents
> = { [K in keyof TSources]: Component
>; }; /** * 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. */ declare type BuiltinComponents = SourcesToComponents
; /** * Gets a components list from the given list of entropy sources. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function getComponents
, TExclude extends string>(sources: TSources, sourceOptions: TSourceOptions, excludeSources: readonly TExclude[]): Promise
, TExclude>>; /** * Options for Fingerprint class loading */ interface LoadOptions { /** * When browser doesn't support `requestIdleCallback` a `setTimeout` will be used. This number is only for Safari and * old Edge, because Chrome/Blink based browsers support `requestIdleCallback`. The value is in milliseconds. * @default 50 */ delayFallback?: number; } /** * Options for getting visitor identifier */ interface GetOptions { /** * Whether to print debug messages to the console. * Required to ease investigations of problems. */ debug?: boolean; } /** * Result of getting a visitor identifier */ interface GetResult { /** * The visitor identifier */ visitorId: string; /** * List of components that has formed the visitor identifier. * * Warning! The type of this property is specific but out of Semantic Versioning, i.e. may have incompatible changes * within a major version. If you want to avoid breaking changes, treat the property as having type * `UnknownComponents` that is more generic but guarantees backward compatibility within a major version. */ components: BuiltinComponents; } /** * Agent object that can get visitor identifier */ interface Agent { /** * Gets the visitor identifier */ get(options?: Readonly
): Promise
; } declare function componentsToDebugString(components: UnknownComponents): string; declare function hashComponents(components: UnknownComponents): string; /** * Builds an instance of Agent and waits a delay required for a proper operation. */ declare function load({ delayFallback }?: Readonly
): Promise
; /** * Checks whether the browser is based on Trident (the Internet Explorer engine) without using user-agent. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function isTrident(): boolean; /** * Checks whether the browser is based on EdgeHTML (the pre-Chromium Edge engine) without using user-agent. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function isEdgeHTML(): boolean; /** * Checks whether the browser is based on Chromium without using user-agent. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function isChromium(): boolean; /** * Checks whether the browser is based on mobile or desktop Safari without using user-agent. * All iOS browsers use WebKit (the Safari engine). * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function isWebKit(): boolean; /** * Checks whether the WebKit browser is a desktop Safari. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function isDesktopSafari(): boolean; /** * Checks whether the browser is based on Gecko (Firefox engine) without using user-agent. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ declare function isGecko(): boolean; declare const _default: { load: typeof load; hashComponents: typeof hashComponents; componentsToDebugString: typeof componentsToDebugString; }; /** Not documented, out of Semantic Versioning, usage is at your own risk */ declare const murmurX64Hash128: typeof x64hash128; export default _default; export { Agent, BuiltinComponents, Component, GetOptions, GetResult, LoadOptions, SourcesToComponents, UnknownComponents, componentsToDebugString, getComponents, hashComponents, isChromium, isDesktopSafari, isEdgeHTML, isGecko, isTrident, isWebKit, load, murmurX64Hash128 };