export type DropoutProjectionRow = {
    traineeId: bigint;
    traineeUniqueId: string;
    traineeName: string;
    trainingProviderId: bigint;
    trainingId: bigint;
    cohortId: bigint | null;
    possibleToDate: number;
    presentToDate: number;
    attendancePctToDate: number;
    possibleFinal: number;
    presentFinal: number;
    attendancePctFinal: number;
    maxRecoverablePct: number;
    systemDropoutRisk: boolean;
    systemDropoutFinal: boolean;
    tpReportedDropout: boolean;
    /** TP reported N for a system-final low-attendance trainee (attendance data disputed). */
    disputedSystemFinal: boolean;
    effectiveDropout: boolean;
    reasonCode: string | null;
    reasonSource: "tp_reported" | "system_auto" | null;
    missingInTpReport: boolean;
};
type ScopeArgs = {
    projectId: bigint;
    trainingProviderId?: bigint | null;
    trainingId?: bigint | null;
    cohortId?: bigint | null;
    now?: Date;
    traineeId?: bigint | null;
};
export declare function computeDropoutProjections(args: ScopeArgs): Promise<DropoutProjectionRow[]>;
export declare function summarizeReasonShares(rows: Array<DropoutProjectionRow & {
    countsTowardKpiRate?: boolean;
}>, opts?: {
    forKpiRate?: boolean;
}): {
    total: number;
    shares: {
        reasonCode: string;
        count: number;
        sharePct: number;
    }[];
};
export {};
//# sourceMappingURL=dropoutProtocol.d.ts.map