/**
 * Reads a JWT's expiration in epoch milliseconds.
 *
 * Lives outside `login.ts` so credential storage can share it without importing the
 * interactive login flow, which itself depends on token storage.
 *
 * @param token The token to inspect.
 * @returns The expiration, or `undefined` when the token is undecodable or has no `exp`.
 */
export declare function getTokenExpirationMs(token: string): number | undefined;
/**
 * Decides whether the token is still valid based on its expiration time.
 *
 * @param token The token to check.
 * @param gap In seconds
 * @returns Boolean indicating if the token is still valid.
 */
export declare function isTokenStillValid(token: string, gap?: number): boolean;
//# sourceMappingURL=token-expiry.d.mts.map