import { type FlagValues } from '../config/manager.js'; import type { TokenInfo } from '../../types/index.js'; export declare class TokenManager { private apiVersion; constructor(); /** * Get the access token, throwing if not configured */ getToken(flags?: FlagValues): Promise; /** * Validate an access token and return its info */ validateToken(token: string): Promise; /** * Save an access token to config */ saveToken(token: string): void; /** * Delete the stored access token */ deleteToken(): void; /** * Check if a token is configured */ hasToken(flags?: FlagValues): boolean; /** * Get token expiry info formatted for display */ formatTokenExpiry(tokenInfo: TokenInfo): string; /** * Get required permissions for the CLI */ getRequiredPermissions(): string[]; /** * Check if token has required permissions */ hasRequiredPermissions(tokenInfo: TokenInfo): { valid: boolean; missing: string[]; }; } export declare const tokenManager: TokenManager; //# sourceMappingURL=token-manager.d.ts.map