/** * Navidrome MCP Server - Lyrics Tools * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { z } from 'zod'; import type { LyricsDTO, LyricsSearchDTO } from '../types/index.js'; import type { Config } from '../config.js'; import type { NavidromeClient } from '../client/navidrome-client.js'; import { LyricsMetadataSchema } from '../schemas/index.js'; import { type LocalLyricsResult } from '../transformers/lyrics-tag.js'; type LyricsMetadataParams = z.infer; /** The store gates LRCLIB with one boolean, and env keeps the legacy provider and user-agent switch. */ export declare const LRCLIB_OFF_MESSAGE: string; type LocalLyricsSource = { readonly client: NavidromeClient; readonly songId: string; } | { readonly lyrics: LocalLyricsResult | null; }; /** Omitting the options gives LRCLIB-only resolution. */ interface ResolveLyricsOptions { readonly local?: LocalLyricsSource; readonly allowLrclib?: boolean; } /** Precedence: local synced, LRCLIB synced, local plain, LRCLIB plain. */ export declare function resolveLyricsByMetadata(config: Config, args: unknown, opts?: ResolveLyricsOptions): Promise; /** `duration` is in seconds, as in Navidrome song rows and play-queue entries. */ interface LyricsTrackFields { readonly title: string | undefined; readonly artist: string | undefined; readonly album: string | undefined; readonly duration: unknown; } interface LyricsLookup { readonly metadata: LyricsMetadataParams; readonly searchable: boolean; } /** * LyricsMetadataSchema rejects an empty title or artist, so placeholders fill the gaps. Callers * must AND `searchable` into allowLrclib, since a placeholder matches unrelated LRCLIB records. */ export declare function buildLyricsLookup(fields: LyricsTrackFields): LyricsLookup; /** Metadata lookup is search_lyrics, whose candidates carry the lrclibId this resolver fetches. */ export declare function getLyricsByIdentity(config: Config, client: NavidromeClient, args: unknown): Promise; /** * The matching library song is reported beside the LRCLIB candidates, so choosing a source costs * one call instead of two. */ export declare function searchLyricsCandidates(config: Config, client: NavidromeClient, args: unknown): Promise; export {}; //# sourceMappingURL=lyrics.d.ts.map