/** * Navidrome MCP Server - Web remote guest search, queue and nickname routes * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { IncomingMessage, ServerResponse } from 'node:http'; import type { NavidromeClient } from '../../client/navidrome-client.js'; import { type AuthService } from '../auth/auth-service.js'; import type { SessionRecord } from '../auth/auth-store.js'; import type { GuestQueue } from '../jukebox/guest-queue.js'; type LiveCheck = Pick; /** * Only the fields the guest page shows, so the rest of each library row stays with the host. The host * searches from the guest page only while a code is live. */ export declare function handleGuestSearch(res: ServerResponse, client: NavidromeClient, guests: GuestQueue, auth: LiveCheck, session: SessionRecord, rawQuery: string | null): Promise; /** * A refusal carries a `code`, so the guest page branches on it instead of on the message text. The * session is checked before the library read, so a host with no live code never reaches Navidrome. */ export declare function handleGuestAdd(req: IncomingMessage, res: ServerResponse, client: NavidromeClient, guests: GuestQueue, auth: LiveCheck, session: SessionRecord): Promise; /** A ban or sign-out can land while the body or the queue is read, so the session is checked after each. */ export declare function handleGuestRemove(req: IncomingMessage, res: ServerResponse, guests: GuestQueue, auth: LiveCheck, session: SessionRecord): Promise; /** * A ban or sign-out can land while the body is read, so the session is checked again before any write. * A name the server already holds spends no budget, since a second tab may save it again. */ export declare function handleGuestNickname(req: IncomingMessage, res: ServerResponse, auth: Pick, guests: Pick, session: SessionRecord): Promise; export {}; //# sourceMappingURL=guest-queue.d.ts.map