import type { GetidSdkConfig, InitialiseDocumentScanProps, InitialiseLivenessScanProps, InitialiseLivenessScanResult, InitialiseSdkProps, InitialiseSelfieProps, InitialiseSelfieScanResult, UploadDocFile, UploadSelfieFile, PassiveLivenessInfo } from './types/sdkTypes'; import * as GetidSdkTypes from './types/sdkTypes'; import type { LivenessCommandSuccess } from './components/LivenessScan/useLiveness'; import tracking from './sdk/internal/tracking'; declare class GetIdSdk { /** * @hidden */ docFiles: UploadDocFile[]; /** * @hidden */ selfieResult: UploadSelfieFile | null; /** * @hidden */ livenessResult: LivenessCommandSuccess | null; /** * @hidden */ passiveLivenessResult: PassiveLivenessInfo | null; /** * @hidden */ config: GetidSdkConfig; /** * @hidden */ tracking: ReturnType; /** * @hidden */ private constructor(); /** * Initialise the SDK with the given properties. The SDK will fetch the matching flow configuration from the backend and initialise the SDK with it. * * @param props The properties to initialise the SDK with. * * @returns A promise that resolves to the result of the initialisation. */ static initialiseSDK({ token, flow, apiUrl: apiUrlParam, customerId, sdkKey, acceptableDocuments, profile, externalId, styles, }: InitialiseSdkProps): Promise; /** * Method to initialise Front Document Scan * * @param props The properties to initialise the Document Scan with. * * @returns A promise that resolves to the result of the initialisation. */ initialiseFrontDocumentScan: (props: InitialiseDocumentScanProps) => Promise; /** * Method to initialise scan of a document's back side * * @param props The properties to initialise the Document Scan with. * * @returns A promise that resolves to the result of the initialisation. */ initialiseBackDocumentScan: (props: InitialiseDocumentScanProps) => Promise; /** * Method to initialise taking a selfie * * @param props The properties to initialise selfie capturing with. * * @returns A promise that resolves to the result of the initialisation. */ initialiseSelfie: (props: InitialiseSelfieProps) => Promise; /** * Method to initialise liveness check * * @param props The properties to initialise liveness check with. * * @returns A promise that resolves to the result of the initialisation. */ initialiseLivenessScan: (props: InitialiseLivenessScanProps) => Promise; /** * Abort method that can be called to abort the identification process and fully reset the SDK state. * This gracefully closes the camera stream and stops any active work in the SDK. */ abort: () => Promise; submitForVerification: (props: GetidSdkTypes.SubmitForVerificationProps) => Promise; /** * @hidden */ addDocFile: (docFile: UploadDocFile) => void; /** * @hidden */ addSelfieFile: (selfieFile: UploadSelfieFile) => void; /** * @hidden */ addPassiveLivenessInfo: (passiveLivenessResult: PassiveLivenessInfo) => void; /** * @hidden */ addLivenessResult: (livenessResult: LivenessCommandSuccess) => void; private static generateApplication; /** * @hidden */ private static getConfig; /** * @hidden */ sendLivenessEvent: (livenessServerMessage: any) => Promise; } export { GetIdSdk, GetidSdkTypes }; //# sourceMappingURL=index.d.ts.map