/** * Navidrome MCP Server - Admin login throttle * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ /** * The failure delay is shared by every network, so rotating network keys cannot dodge it. A login * from this computer neither waits for that delay nor adds to it, so a LAN or internet client cannot * lock the host out. The bucket caps each network key, the local one included. */ export declare class LoginThrottle { private readonly now; private consecutiveFailures; private nextAttemptAt; private inFlight; private inFlightIsLocal; private readonly buckets; constructor(now?: () => number); /** Returns 0 and starts an attempt, or the wait in milliseconds before the next one may start. */ tryBegin(networkKey: string, isLocal: boolean): number; finish(succeeded: boolean): void; prune(): void; } //# sourceMappingURL=login-throttle.d.ts.map