@daysnap/horn-jssdk
Version:
原生容器面向 H5 开发者提供的基于容器应用内的网页开发工具包
16 lines (15 loc) • 664 B
TypeScript
import { type FailCallbackResult, type PickOptions } from '../../core';
export interface LicenseOCRResult {
content: string[] | string;
filePath: string;
}
export type LicenseOCRAction = 'licenseScan' | 'licenseCapture' | 'vinScan';
export interface LicenseOCROptions {
filePath?: string;
current?: LicenseOCRAction;
actions?: LicenseOCRAction[];
album?: boolean;
success?: (result: LicenseOCRResult) => void;
fail?: (err: FailCallbackResult) => void;
}
export declare const licenseOCR: <T extends LicenseOCROptions = LicenseOCROptions>(options: T) => import("../../core").PromisifySuccessResult<PickOptions<T>, LicenseOCROptions>;