import { EpochSeconds, FilePath, Seconds, LogOpts } from './util'; export type StravaCredsData = { token_type: string; expires_at: EpochSeconds; expires_in: EpochSeconds; refresh_token: string; access_token: string; athlete: { id?: string; username?: string; [key: string]: any; }; }; export declare function isStravaCredsData(val: any): val is StravaCredsData; export declare class StravaCreds { private _data; private _path; private _log; constructor(tokenFile: FilePath, opts: LogOpts); get expiresAt(): EpochSeconds; get refreshToken(): string; get accessToken(): string; areValid(t?: Seconds): boolean; static validCredData(val: any): val is StravaCredsData; read(): Promise; write(data: any): Promise; }