import * as React from 'react';
import { ImageType } from './imageMap';
import { UploadProps } from './Upload';
interface OCRResponse {
    success?: boolean;
    msg?: string;
}
export interface OCRProps<T = unknown> extends Omit<UploadProps, 'type' | 'value' | 'defaultValue' | 'onChange'> {
    fileType: ImageType;
    value?: T & OCRResponse;
    defaultValue?: string[];
    onChange?: (value: T, urls: string[]) => void;
}
declare function validator<T>(_: T, value: OCRResponse): Promise<boolean>;
interface OCRInterface {
    <T extends Record<string, any> = any>(props: OCRProps<T> & {
        ref?: React.Ref<unknown>;
    }): React.ReactElement;
    displayName: string;
    validator: typeof validator;
}
declare const OCR: OCRInterface;
export { OCR };
