export interface StoredCredentials { baseUrl: string; clientId: string; clientSecret?: string; registrationAccessToken?: string; registrationClientUri?: string; accessToken?: string; refreshToken?: string; tokenType?: string; scope?: string; expiresAt?: number; } export interface TokenResponse { access_token: string; token_type: string; expires_in?: number; refresh_token?: string; scope?: string; id_token?: string; } export declare function defaultCredentialsPath(): string; export declare function loadCredentials(path: string): Promise; export declare function saveCredentials(path: string, creds: StoredCredentials): Promise; export declare function applyTokenResponse(base: StoredCredentials, token: TokenResponse, now?: number): StoredCredentials; export declare function isTokenExpired(creds: StoredCredentials, now?: number): boolean;