import type { DropoutProjectionRow } from "./dropoutProtocol.js";
/**
 * POLICY — low-attendance dropouts must be reported as dropout=yes.
 *
 * Attendance is owned by the training provider, so once the system has finalised a trainee as a
 * low-attendance dropout (attendance < 80% after the class ended, transfers excluded) that
 * trainee MUST come back in the dropout report as reported_value=Y. A row that is absent, or one
 * that is explicitly reported as N, both block the report — there is no dispute path any more.
 * The caller turns the returned list into a 422.
 */
export type SystemFinalDropoutViolation = {
    traineeId: string;
    traineeUniqueId: string;
    traineeName: string;
    attendancePctFinal: number;
    /** `missing` — no dropout row at all. `reported_no` — row present but reported N. */
    issue: "missing" | "reported_no";
};
export type DropoutReportRow = {
    traineeId: string | bigint;
    outcomeType: string;
    reportedValue?: boolean | null;
};
/**
 * Returns one entry per system-final (attendance < 80% after the class ended) trainee that the
 * submission does NOT report as dropout=yes.
 *
 * `submitted` is the rows the provider is trying to write, for either the API submit path
 * (`traineeId: string`) or the CSV import path (`traineeId: bigint`).
 */
export declare function findSystemFinalDropoutViolations(submitted: DropoutReportRow[], projections: DropoutProjectionRow[]): SystemFinalDropoutViolation[];
/** 422 payload shared by the submit and import paths so both reject identically. */
export declare function systemFinalDropoutRejection(violations: SystemFinalDropoutViolation[]): {
    error: string;
    details: {
        missingCount: number;
        reportedNoCount: number;
        totalCount: number;
        trainees: SystemFinalDropoutViolation[];
    };
};
//# sourceMappingURL=dropoutPolicy.d.ts.map