declare const _default: { /** * Opens the camera, and starts the document scan */ scanDocument(options?: ScanDocumentOptions): Promise; }; export default _default; export interface ScanDocumentOptions { /** * Android only: If true then once the user takes a photo, they get to preview the automatically * detected document corners. They can then move the corners in case there needs to * be an adjustment. If false then the user can't adjust the corners, and the user * can only take 1 photo (maxNumDocuments can't be more than 1 in this case). * @default: true */ letUserAdjustCrop?: boolean; /** * Android only: The maximum number of photos an user can take (not counting photo retakes) * @default: 24 */ maxNumDocuments?: number; /** * The response comes back in this format on success. It can be the document * scan image file paths or base64 images. * @default: ResponseType.ImageFilePath */ responseType?: ResponseType; } export declare enum ResponseType { /** * Use this response type if you want document scan returned as base64 images. */ Base64 = "base64", /** * Use this response type if you want document scan returned as inmage file paths. */ ImageFilePath = "imageFilePath" } export interface ScanDocumentResponse { /** * This is an array with either file paths or base64 images for the * document scan. */ scannedImages?: string[]; /** * The status lets you know if the document scan completes successfully, * or if the user cancels before completing the document scan. */ status?: ScanDocumentResponseStatus; } export declare enum ScanDocumentResponseStatus { /** * The status comes back as success if the document scan completes * successfully. */ Success = "success", /** * The status comes back as cancel if the user closes out of the camera * before completing the document scan. */ Cancel = "cancel" }