export type AttendanceCounts = {
    present: number;
    possible: number;
    byTp: Map<string, {
        present: number;
        possible: number;
    }>;
};
/**
 * Protocol §9 — sessions attended ÷ sessions scheduled (to date), tracked roster (active + reserve) for KPI rate.
 * Denominator: per trainee, all scheduled sessions in delivery batch range (holidays/breakdowns excluded).
 */
export declare function computeAttendancePresentPossible(projectId: bigint, asOf?: Date): Promise<AttendanceCounts>;
/** Expected slots for attendance capture roster (active + reserve). Used for completion submission gates, not KPI rate. */
export declare function computeAttendanceCapturePossible(projectId: bigint, asOf?: Date): Promise<AttendanceCounts>;
export type TraineeAttendanceRateRow = {
    traineeId: bigint;
    traineeUniqueId: string;
    externalBeneficiaryId: string | null;
    firstName: string;
    fatherName: string | null;
    grandfatherName: string | null;
    sex: string;
    rosterRole: string;
    attendanceEligibleFrom: Date | null;
    trainingId: bigint;
    trainingTitle: string;
    cohortId: bigint | null;
    cohortCode: string | null;
    cohortName: string | null;
    batchId: bigint | null;
    batchCode: string | null;
    batchName: string | null;
    present: number;
    possible: number;
    /** null when the trainee has no eligible sessions yet (no delivery batch or not started). */
    ratePct: number | null;
};
/**
 * Per-trainee attendance rates for one training provider: attended (present + excused) ÷ eligible
 * scheduled sessions, using the same denominator policy as the provider KPI in
 * computeAttendancePresentPossible. Every tracked roster member (active + reserve) keeps a row so
 * the export lists the full roster; members without a delivery batch get possible = 0.
 */
export declare function computeTraineeAttendanceRatesForProvider(projectId: bigint, trainingProviderId: bigint, asOf?: Date): Promise<TraineeAttendanceRateRow[]>;
/** Present/possible for one delivery batch within its cohort; denominator uses the batch timeline. */
export declare function computeAttendancePresentPossibleForTrainingScope(projectId: bigint, trainingId: bigint, cohortId: bigint, batchId: bigint, asOf?: Date): Promise<{
    present: number;
    possible: number;
}>;
//# sourceMappingURL=attendanceRollup.d.ts.map