export interface TDSignResult { code: number; sign: string; msg: string; } export interface TDBehaviorResult { code: number; payload: string; msg: string; } export interface TDDeviceInfoResult { blackBox: string; fpVersion: string; anonymousId: string; deviceRiskScore: number; sealedResult: string; apiStatus: {code: number; message: string}; code: number; msg: string; } export type TDCaptchaResult = | {function: 'onSuccess'; token: string} | {function: 'onFailed'; errorCode: number; errorMsg: string}; export interface TDLivenessResult { function: 'onSuccess' | 'onFailed'; code?: number | string; message?: string; sequence_id?: string; liveness_id?: string; image?: string; [key: string]: unknown; } export interface TrustDeviceModule { initWithOptions(options: Record): Promise | void; getSDKVersion(): Promise; getBlackBox(): Promise; getBlackBoxAsync(): Promise; getDeviceInfo(): Promise; getDeviceInfoAsync(): Promise; sign(path: string): Promise; showCaptcha(): Promise; showLiveness(options: {license?: string; showStyle?: 'present' | 'push'}): Promise; start(): Promise; stop(): Promise; collect(): Promise; } export interface TrustDeviceSeModule { initWithOptions(options: Record): Promise | void; getSDKVersion(): Promise; getDeviceInfo(): Promise; getDeviceInfoAsync(): Promise; sign(path: string): Promise; showCaptcha(): Promise; showLiveness(options: {license?: string; showStyle?: 'present' | 'push'}): Promise; } declare const TrustDevice: TrustDeviceModule; export {TrustDevice}; export const TrustDeviceSe: TrustDeviceSeModule; export default TrustDevice;