import type { StravaActivity } from "../strava/types.js"; /** * Insert or replace a Strava activity row into local `activities` table. * * The full activity object is saved in the `raw_json` column and `synced_at` * is set to the current timestamp. * * @param activity - The Strava activity to persist (will be stored and indexed by `id`) */ export declare function insertActivity(activity: StravaActivity): void; /** * Inserts or replaces an athlete row in the local database. * * @param athlete - Athlete data to persist. Fields: * - `id`: Strava athlete identifier * - `firstname`: Athlete's first name * - `lastname`: Athlete's last name * - `weight` (optional): Athlete weight (if available) * - `ftp` (optional): Athlete functional threshold power (if available) * * This stores the provided fields, the full athlete object as `raw_json`, * and sets `updated_at` to the current time. */ export declare function insertAthlete(athlete: { id: number; firstname: string; lastname: string; weight?: number; ftp?: number; }): void;