/**
 * Check-digit map extracted from a parsed TD3 MRZ payload.
 */
export type MrzCheckDigits = {
    passportNumber?: string;
    birthDate?: string;
    expirationDate?: string;
    personalNumber?: string;
    composite?: string;
};
/**
 * Normalized MRZ parsing result after checksum/date validation.
 */
export interface MrzResult {
    raw: string;
    lines: string[];
    fields: {
        documentType?: string;
        issuingState?: string;
        surname?: string;
        givenNames?: string;
        passportNumber?: string;
        nationality?: string;
        birthDate?: string;
        sex?: string;
        expirationDate?: string;
        personalNumber?: string;
        checkDigits?: MrzCheckDigits;
    };
}
export interface UseMrzReaderOptions {
    scaleFactor?: number;
    useOpenCv?: boolean;
    lang?: string;
    langPath?: string;
}
/**
 * MRZ reader pipeline for camera/video/image sources.
 * Performs OCR, candidate-region extraction, TD3 parsing, and checksum validation.
 */
export declare function useMrzReader(options?: UseMrzReaderOptions): {
    ensureOpenCvReady: () => Promise<boolean>;
    opencvReady: import("vue").Ref<boolean, boolean>;
    ocrProgress: import("vue").Ref<number, number>;
    ocrStatus: import("vue").Ref<string, string>;
    decodeFromVideoElement: (video: HTMLVideoElement) => Promise<MrzResult | undefined>;
    decodeFromImageFile: (file: File) => Promise<MrzResult | undefined>;
};
