import type { Tokens } from "../lib/config.js"; import type { Lap, StravaActivity, StravaAthlete } from "./types.js"; export declare function getAthlete(tokens: Tokens): Promise; /** * Fetches a page of the authenticated athlete's activities from the Strava API filtered by time range. * * @param tokens - Authentication tokens containing an access token * @param after - UNIX timestamp (seconds) to include activities occurring after this time * @param before - Optional UNIX timestamp (seconds) to include activities occurring before this time * @param page - Page number to retrieve (defaults to 1) * @param perPage - Number of activities per page (defaults to 100) * @returns An array of `StravaActivity` objects matching the query * @throws If the Strava API responds with a non-ok HTTP status */ export declare function getActivities(tokens: Tokens, after: number, before?: number, page?: number, perPage?: number): Promise; /** * Fetches lap data for a Strava activity. * * @param tokens - Authentication tokens containing an `access_token` used for the request * @param id - Strava activity identifier * @returns An array of `Lap` objects for the specified activity * @throws Error when the API response is not ok; the error message includes the response status text */ export declare function getActivityLaps(tokens: Tokens, id: number): Promise; /** * Fetches all activities for the authenticated athlete starting from the specified date. * * @param tokens - Authentication tokens for the athlete * @param afterDate - Lower bound date (UTC) for activities to include * @returns An array of Strava activities occurring on or after `afterDate` */ export declare function getAllActivities(tokens: Tokens, afterDate: Date): Promise;