import { type TrainingDateRange } from "./attendanceCalendar.js";
/**
 * All scheduled sessions in the delivery batch range count (no per-trainee promotion cutoff).
 * `attendanceEligibleFrom` is retained on the row for audit but not applied in calculations.
 */
export declare function filterScheduledDatesFromEligibleStart(sessionDatesOrdered: Date[], _attendanceEligibleFrom?: Date | null | undefined): Date[];
export declare function eligibleSessionKeysForTrainee(args: {
    sessionDatesOrdered: Date[];
    attendanceEligibleFrom: Date | null | undefined;
    excludedSessionKeys: Set<string>;
}): string[];
export type AttendanceBreakdownRow = {
    cohortId: bigint | null;
    batchId?: bigint | null;
    breakStartDate: Date;
    breakEndDate: Date;
};
export declare function traineeBreakdownExcludedKeys(breakdowns: Array<{
    cohortId: bigint | null;
    breakStartDate: Date;
    breakEndDate: Date;
}>, traineeCohortId: bigint | null): Set<string>;
/** Approved breakdown applies: training-wide, cohort-wide for this trainee, or batch-specific. */
export declare function traineeBreakdownExcludedKeysForDeliveryBatch(breakdowns: AttendanceBreakdownRow[], traineeCohortId: bigint | null, deliveryBatchId: bigint): Set<string>;
export declare function trainingRangeForTraineeScope(args: {
    training: TrainingDateRange;
    cohort: {
        startDate: Date;
        endDate: Date;
        sessionWeekdays: unknown;
    } | null;
}): TrainingDateRange;
//# sourceMappingURL=attendanceEligibility.d.ts.map