import type { PrismaClient } from "@prisma/client";
export type VerificationSamplingCandidate = {
    traineeId: bigint;
    locationId: bigint | null;
    locationName: string;
    sexKey: "male" | "female" | "unknown";
};
export type VerificationPopulationCell = {
    locationId: string | null;
    locationName: string;
    locationCode: string | null;
    sexKey: "male" | "female" | "unknown";
    count: number;
};
export type VerificationPopulationSummary = {
    totalEligible: number;
    byCell: VerificationPopulationCell[];
    byLocation: Array<{
        locationId: string | null;
        locationName: string;
        locationCode: string | null;
        male: number;
        female: number;
        unknownSex: number;
        total: number;
    }>;
    unknownLocationCount: number;
    unknownSexCount: number;
    warnings: string[];
};
export declare function normalizeSexKey(raw: string | null | undefined): "male" | "female" | "unknown";
export declare function buildLocationSexStratumKey(locationId: bigint | null, sexKey: string): string;
export declare function loadVerificationCandidates(prisma: PrismaClient, projectId: bigint, trainingProviderId: bigint, denominatorTraineeIds: bigint[]): Promise<{
    candidates: VerificationSamplingCandidate[];
    locationMeta: Map<string, {
        name: string;
        code: string | null;
    }>;
}>;
export declare function summarizeVerificationPopulation(candidates: VerificationSamplingCandidate[], locationMeta: Map<string, {
    name: string;
    code: string | null;
}>): VerificationPopulationSummary;
//# sourceMappingURL=verificationPopulationService.d.ts.map