/** * Navidrome MCP Server - Web remote jukebox code routes * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { IncomingMessage, ServerResponse } from 'node:http'; import { type Config } from '../../config.js'; import type { AuthService } from '../auth/auth-service.js'; import type { SseBroadcaster } from '../broadcaster.js'; /** A key-free status read. `GET /api/jukebox/code` is the read that carries the key. */ export declare function handleGetJukeboxStatus(res: ServerResponse, auth: AuthService): void; /** The only read that carries the key. `writeJson` sends `Cache-Control: no-store`. */ export declare function handleGetJukeboxCode(res: ServerResponse, auth: AuthService, config: Config): void; /** * Answers with the code route's view of the new code plus `joinUrls`. A kept guest's page reads its * new expiry from a snapshot, and a paused player sends none, so one goes out now. */ export declare function handleCreateJukeboxCode(req: IncomingMessage, res: ServerResponse, auth: AuthService, config: Config, broadcaster: Pick): Promise; export declare function handleGetJukeboxSettings(res: ServerResponse): void; /** * Each sent field applies at once, and every guest page learns a new song limit from a snapshot sent * now. `persisted` is false when the change holds until the player restarts. */ export declare function handleSetJukeboxSettings(req: IncomingMessage, res: ServerResponse, broadcaster: Pick): Promise; export declare function handleRevokeJukeboxCode(req: IncomingMessage, res: ServerResponse, auth: AuthService): void; //# sourceMappingURL=jukebox.d.ts.map