import type { Prisma, PrismaClient } from "@prisma/client";
import { type TrainingDateRange } from "./attendanceCalendar.js";
import { type TraineeRosterRole } from "./traineeRoster.js";
export type TraineeScopeDb = PrismaClient | Prisma.TransactionClient;
/** Scope calendar + holidays for replacement window anchor and attendance eligibility. */
export declare function loadAttendanceScopeForTrainee(db: TraineeScopeDb, args: {
    projectId: bigint;
    trainingId: bigint;
    cohortId: bigint | null;
    batchId?: bigint | null;
}): Promise<{
    anchorStart: Date;
    range: TrainingDateRange;
    holidayDates: Date[];
} | null>;
/** @deprecated Attendance uses delivery batch timeline only; kept for reference. */
export declare function computeInitialAttendanceEligibleFrom(db: TraineeScopeDb, args: {
    projectId: bigint;
    trainingId: bigint;
    cohortId: bigint | null;
    batchId?: bigint | null;
    rosterRole: TraineeRosterRole;
}): Promise<Date | null>;
/** @deprecated Promotion no longer sets attendanceEligibleFrom. */
export declare function computePromotionAttendanceEligibleFrom(args: {
    range: TrainingDateRange;
    holidayDates: Date[];
    promotedAt: Date;
}): Date;
//# sourceMappingURL=traineeAttendanceAnchor.d.ts.map