import type { GeoPosition, Activity } from '../types'; /** * Create a new course builder */ export declare function createCourse(name: string, sport?: Course['sport']): CourseBuilder; /** * Export course to GPX format */ export declare function courseToGpx(course: Course): string; /** * Export course to TCX course format */ export declare function courseToTcx(course: Course): string; export declare interface CoursePoint { position: GeoPosition distance: number name?: string type?: CoursePointType notes?: string } export declare interface Course { id?: string name: string description?: string sport: 'running' | 'cycling' | 'hiking' | 'walking' trackPoints: GeoPosition[] coursePoints: CoursePoint[] totalDistance: number totalAscent: number totalDescent: number createdAt?: Date updatedAt?: Date } export type CoursePointType = | 'generic' | 'summit' | 'valley' | 'water' | 'food' | 'danger' | 'left' | 'right' | 'straight' | 'first_aid' | 'fourth_category' | 'third_category' | 'second_category' | 'first_category' | 'hors_category' | 'sprint'; export declare class CourseBuilder { constructor(name: string, sport?: Course['sport']); setDescription(description: string): this; setSport(sport: Course['sport']): this; addPoint(lat: number, lng: number, altitude?: number): this; addPoints(points: Array<{ lat: number lng: number altitude?: number }>): this; addCoursePoint(lat: number, lng: number, type: CoursePointType, name?: string, notes?: string): this; addWaterStation(lat: number, lng: number, name?: string): this; addFoodStation(lat: number, lng: number, name?: string): this; addTurn(lat: number, lng: number, direction: 'left' | 'right' | 'straight', notes?: string): this; addClimbCategory(lat: number, lng: number, category: 1 | 2 | 3 | 4 | 'hors', name?: string): this; addSprint(lat: number, lng: number, name?: string): this; addSummit(lat: number, lng: number, name?: string): this; fromActivity(activity: Activity): this; fromGeoJson(geoJson: { type: string coordinates: number[][] }): this; reverse(): this; build(): Course; }