/** * Navidrome MCP Server - Authentication Manager * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { Config } from '../config.js'; /** An unrecognized failure counts as a configuration problem, so the settings page still opens. */ export declare function isNavidromeUnreachable(error: unknown): boolean; export declare class AuthManager { private token; private tokenExpiry; private readonly config; private refreshPromise; constructor(config: Config); authenticate(): Promise; /** A late 401 for a token that a refresh already replaced leaves the fresh token in place. */ invalidate(staleToken: string): void; getToken(): Promise; private performAuthenticate; /** A timed-out login is not retried, since every attempt counts against a login rate limit. */ private postLogin; } //# sourceMappingURL=auth-manager.d.ts.map