export type RosterInputRow = {
    rowNumber: number;
    class?: string;
    first_name?: string;
    firstName?: string;
    father_name?: string;
    fatherName?: string;
    phone?: string;
    email?: string;
    gender?: string;
    department?: string;
    [key: string]: unknown;
};
export type DbTraineeForRosterCheck = {
    id: bigint;
    traineeUniqueId: string;
    firstName: string;
    fatherName: string | null;
    email: string | null;
    phonePrimary: string | null;
    phoneAlternative: string | null;
    providerName: string;
};
export type RosterStatusCategory = "internal_duplicate_phone" | "internal_duplicate_email" | "internal_duplicate_name" | "system_duplicate_phone" | "system_duplicate_email" | "system_duplicate_name" | "unverifiable_no_phone_or_email" | "unverifiable_by_phone" | "clean";
export type NormalizedRosterRow = {
    rowNumber: number;
    rowRef: string;
    classLabel: string;
    firstName: string;
    fatherName: string;
    uploadedName: string;
    phoneRaw: string;
    emailRaw: string;
    phoneClean: string | null;
    phoneValid: boolean;
    nameKey: string;
    emailKey: string | null;
    dataCompleteness: "both" | "phone_only" | "email_only" | "neither";
};
export type RosterReportRow = {
    rowRef: string;
    rowNumber: number;
    uploadedName: string;
    phone: string;
    phoneClean: string | null;
    email: string;
    dataCompleteness: string;
    status: string;
    statusCategory: RosterStatusCategory;
    internalClusterRefs: string | null;
    matchedName: string | null;
    matchedProvider: string | null;
    matchedRecordId: string | null;
    matchType: string | null;
};
export type RosterDuplicateCheckResult = {
    summary: Record<RosterStatusCategory | "totalRows", number> & {
        totalRows: number;
    };
    internalClusters: Array<{
        matchType: "phone" | "email" | "name";
        confidence: "high" | "medium" | "low";
        rowRefs: string[];
    }>;
    items: RosterReportRow[];
};
/** Strip Excel `.0` suffix before canonical phone normalization. */
export declare function normalizeRosterPhoneRaw(raw: unknown): {
    phoneClean: string | null;
    phoneValid: boolean;
};
export declare function buildRosterNameKey(first: unknown, father: unknown): string;
export declare function buildRosterEmailKey(email: unknown): string | null;
export declare function normalizeRosterRows(rows: RosterInputRow[]): NormalizedRosterRow[];
export declare function runRosterDuplicateCheck(inputRows: RosterInputRow[], dbTrainees: DbTraineeForRosterCheck[]): RosterDuplicateCheckResult;
//# sourceMappingURL=rosterDuplicateCheck.d.ts.map