import { type PatientInfo } from './parser';
export interface ExtractPatientInfoConfig {
    apiKey: string;
    ocrText: string;
}
export interface ExtractedPatientInfo extends PatientInfo {
    /** SHA-256 hash of normalized firstName|lastName|dob for patient matching */
    patient_identifier_hash: string | null;
}
/**
 * Generates a deterministic patient identifier hash from first name, last name, and DOB.
 * Returns null if any required field is missing.
 *
 * @param firstName - Patient's first name
 * @param lastName - Patient's last name
 * @param dob - Patient's date of birth (YYYY-MM-DD)
 * @returns SHA-256 hash or null if fields are missing
 */
export declare function generatePatientHash(firstName: string | null, lastName: string | null, dob: string | null): string | null;
/**
 * Extracts patient information from OCR text using an LLM.
 *
 * Uses GPT-4o-mini for cost-effective extraction with good accuracy.
 * Includes retry logic for parsing failures.
 *
 * @param config - Configuration including API key and OCR text
 * @returns Extracted patient information with identifier hash
 */
export declare function extractPatientInfoFromOCR(config: ExtractPatientInfoConfig): Promise<ExtractedPatientInfo>;
