/** * Manages the MM API token with caching and expiration checking * Tokens are cached across jobs and job instances in SQLite runtime state (jobs-shared-data.ts). * @jest-environment node */ export declare class MMTokenManager { private token; private tokenExpiration; private baseUrl; private api; constructor(); /** * Checks if the current token is expired or will expire within the next minute * @returns boolean indicating if token needs refresh */ private isTokenExpired; /** * Safely extracts expiration time from JWT token * @param token JWT token string * @returns Date object representing token expiration, or null if cannot be determined */ private getTokenExpiration; /** * Gets a valid token, either from cache or by requesting a new one * @returns Promise resolving to a valid token string */ getToken(): Promise; /** * Invalidates the current token, forcing a fresh fetch on next getToken() call */ invalidateToken(): void; /** Release HTTP connections (token fetch client). */ destroy(): Promise; } //# sourceMappingURL=token-mgr.d.ts.map