/** * Navidrome MCP Server - Play Queue Sources * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { z } from 'zod'; import type { NavidromeClient } from '../client/navidrome-client.js'; import type { LibraryPlayRequestSchema } from '../schemas/index.js'; import type { QueueTrackMetadata } from '../services/playback/playback-engine.js'; export type LibraryPlayRequest = z.infer; interface QueueSongRow extends QueueTrackMetadata { albumId?: string; discNumber?: number; trackNumber?: number; } export declare function toQueueMetadata(row: QueueSongRow): QueueTrackMetadata; export declare function fetchLibrarySourceRows(client: NavidromeClient, request: LibraryPlayRequest): Promise; export declare function fetchAlbumSetSongs(client: NavidromeClient, albumIds: readonly string[], label: string): Promise; export declare function fetchPlaylistSongs(client: NavidromeClient, playlistId: string): Promise; /** * A scoped read is the play-eligible set, so its failure throws. An unscoped read only enriches * metadata, so a failed chunk yields nothing unless `strict` is set. */ export declare function fetchSongMetadata(client: NavidromeClient, songIds: readonly string[], options?: { scopeToActiveLibraries?: boolean; strict?: boolean; }): Promise; /** * Navidrome stores an unknown song ID in a playlist as a dangling row and drops it from a saved * queue, so writes reject unknown IDs here first. The check spans every library. */ export declare function assertKnownSongIds(client: NavidromeClient, songIds: readonly string[], consequence: string): Promise; export {}; //# sourceMappingURL=queue-sources.d.ts.map