UNPKG

@yidun/livedetect-sdk-h5

Version:

活体检测 H5

25 lines (24 loc) 978 B
import type { Options, WarnType } from './types'; import Collector from './utils/collector'; export declare function collectError(collector?: Collector, info?: { type: string; name: string; value: string; }): void; export declare function collectPerformance(collector?: Collector): ((url: string) => void) | undefined; export declare function collectLog(name: string, opts: Options, logMsg: string): { type: string; name: string; value: string; }; export declare function processOptions(options?: Options, collector?: Collector): Required<Options>; export declare function getHeadersInfo(headers?: Record<string, string>): { model: string; osVersion: string; sdkType: string; terminal: string; version: string; riskVersion: string; }; export declare function getTipTextByCode(type: WarnType, code: string): string | null; export declare function getTipCircleColor(type: WarnType, code: string): "#FC8D74" | "#5FD6A9" | undefined;