/** * Token Persistence * * Handles reading, writing, and backup of token files. */ import { type StoredOAuthToken } from '../oauth-token-utils.js'; /** * Read and parse token from file */ export declare function readTokenFromFile(file: string): Promise; /** * Backup token file before modification */ export declare function backupTokenFile(file: string): Promise; /** * Restore token from backup */ export declare function restoreTokenFileFromBackup(backupFile: string | null, target: string): Promise; /** * Discard backup file */ export declare function discardBackupFile(backupFile: string | null): Promise;