/** * FIT (Garmin) Workout Export * * Generates Garmin FIT workout files that can be uploaded to Garmin Connect. * Uses the official @garmin/fitsdk package for binary FIT encoding. * * How to import to Garmin: * - Upload to Garmin Connect (connect.garmin.com) -> Training -> Workouts -> Import * - The workout will sync to compatible Garmin devices */ import type { Workout, Sport } from "../../../schema/training-plan.js"; import type { Settings } from "../../stores/settings.js"; /** * Check if the FIT SDK is available at runtime * Always returns true since the SDK is now bundled */ export declare function isFitSdkAvailable(): Promise; /** * Check if a sport is supported by FIT export */ export declare function isFitSupported(sport: Sport): boolean; /** * Create a Garmin FIT workout file from a Workout and exporter Settings. * * Validates that the workout's sport is supported, encodes the required FIT * messages (FILE_ID, WORKOUT, WORKOUT_STEP), and includes swim pool metadata * when applicable based on `settings`. * * @param workout - The workout to export * @param settings - Exporter settings (used for units and swim pool information) * @returns A Uint8Array containing the encoded FIT binary data * @throws Error if the workout's sport is not supported for FIT export */ export declare function generateFit(workout: Workout, settings: Settings): Promise;