import type { VerificationSamplingCandidate } from "./verificationPopulationService.js";
export declare const DEFAULT_SAMPLING_Z = 1.96;
export declare const DEFAULT_SAMPLING_P = 0.5;
export declare const DEFAULT_SAMPLING_E = 0.05;
export declare const DEFAULT_RESERVE_RATIO_PCT = 15;
/** Protocol Section 5.4 applies a ~10 % non-response inflation (÷ 0.9). */
export declare const DEFAULT_NON_RESPONSE_FACTOR = 0.9;
export type VerificationSamplingParameters = {
    Z: number;
    p: number;
    e: number;
    thresholdPct: number;
    reserveRatioPct: number;
    /** Fraction of the FPC sample expected to be reachable (default 0.9 = 10 % non-response). */
    nonResponseFactor?: number;
};
export type VerificationStratumPlan = {
    stratumKey: string;
    locationId: string | null;
    locationName: string;
    sexKey: string;
    population: number;
    primarySample: number;
    reserveSample: number;
};
export type VerificationSamplePlan = {
    parameters: VerificationSamplingParameters;
    totalPopulation: number;
    n0: number;
    nAfterFpc: number;
    primarySampleTotal: number;
    reserveSampleTotal: number;
    strata: VerificationStratumPlan[];
    warnings: string[];
};
export type VerificationDrawnSubject = {
    traineeId: bigint;
    subjectRole: "primary" | "reserve";
    stratumKey: string;
    reserveOrder: number | null;
};
export type VerificationDrawResult = {
    plan: VerificationSamplePlan;
    subjects: VerificationDrawnSubject[];
    seed: string;
    strata: Array<{
        stratumKey: string;
        locationId: string | null;
        locationName: string;
        sexKey: string;
        population: number;
        primaryDrawn: number;
        reserveDrawn: number;
    }>;
    samplingStrategy: string;
};
export declare function computeSampleSizeAfterFpc(N: number, params: Pick<VerificationSamplingParameters, "Z" | "p" | "e">): {
    n0: number;
    nAfterFpc: number;
};
export declare function allocateByLargestRemainder(groupSizes: Array<{
    key: string;
    count: number;
}>, totalSample: number, minPerGroup: boolean): Map<string, number>;
export declare function buildVerificationSamplePlan(candidates: VerificationSamplingCandidate[], parameters: VerificationSamplingParameters): VerificationSamplePlan;
export declare function drawVerificationSample(candidates: VerificationSamplingCandidate[], plan: VerificationSamplePlan, seed: string, excludeTraineeIds?: Set<string>): VerificationDrawResult;
//# sourceMappingURL=verificationSamplingService.d.ts.map