import type { Activity, ActivityRecord } from '../types'; export declare function createPersonalRecordsTracker(existingRecords?: PersonalRecord[]): PersonalRecordsTracker; export declare interface PersonalRecord { type: RecordType value: number unit: string activityId: string activityName?: string date: Date sport: string previousRecord?: { value: number date: Date } } export declare interface RecordDefinition { type: RecordType label: string unit: string sports: string[] extractor: (activity: Activity, records?: ActivityRecord[]) => number | null comparator: 'higher' | 'lower' distanceMeters?: number } export type RecordType = | 'longest_distance' | 'longest_duration' | 'fastest_1k' | 'fastest_5k' | 'fastest_10k' | 'fastest_half_marathon' | 'fastest_marathon' | 'fastest_100m' | 'fastest_400m' | 'fastest_1_mile' | 'highest_avg_power' | 'highest_max_power' | 'highest_normalized_power' | 'highest_elevation_gain' | 'most_calories' | 'fastest_avg_pace' | 'highest_avg_hr' | 'highest_max_hr' | 'longest_moving_time' | 'best_20min_power' | 'best_1hr_power' | 'best_5min_power' | 'max_speed'; export declare class PersonalRecordsTracker { constructor(existingRecords?: PersonalRecord[]); processActivity(activity: Activity): PersonalRecord[]; processActivities(activities: Activity[]): PersonalRecord[]; getAllRecords(): PersonalRecord[]; getRecordsForSport(sport: string): PersonalRecord[]; getRecord(sport: string, type: RecordType): PersonalRecord | undefined; formatRecordValue(record: PersonalRecord): string; toJSON(): PersonalRecord[]; static fromJSON(data: PersonalRecord[]): PersonalRecordsTracker; }