import type { Workout } from "../api/types.js"; import { type ResolvedDiscipline } from "./sport-classifier.js"; export declare const SESSION_GAP_MINUTES = 10; export type SegmentRole = "run" | "erg_station" | "functional" | "other"; export interface SessionSegment { workout: Workout; role: SegmentRole; label: string; duration_seconds: number; } export interface TrainingSession { kind: "hyrox_candidate" | "other"; start: string; end: string; span_seconds: number; tracked_seconds: number; transition_seconds: number; transition_share: number; segments: SessionSegment[]; } /** * Chains workouts that start ≤ SESSION_GAP_MINUTES after the previous one ends. * Workouts resolved as "excluded" are dropped before grouping. */ export declare function groupSessions(workouts: Workout[], disciplineOf?: (workout: Workout) => ResolvedDiscipline): TrainingSession[]; //# sourceMappingURL=session-grouping.d.ts.map