/** * Navidrome MCP Server - Visualizer analysis filter * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ export declare const VISUALIZER_FILTER_LABEL = "navidrome-viz"; export declare const VISUALIZER_BAND_COUNT = 16; export declare const VISUALIZER_BAND_CENTERS_HZ: readonly number[]; /** * `build` names the mpv and FFmpeg versions that passed, so a running mpv of another build is never * trusted. `retry` marks a run that timed out or failed to start, which says nothing of the filter. */ export type VisualizerValidation = { ok: true; build: string; } | { ok: false; reason: string; retry: boolean; }; type VisualizerAction = 'install' | 'remove' | 'defer' | 'none'; /** mpv's %length% quoting carries the graph's brackets and commas verbatim. */ export declare function visualizerFilterSpec(): string; export declare function mpvBuildId(mpvVersion: unknown, ffmpegVersion: unknown): string | null; /** * mpv accepts a broken filter while idle and then fails every track, so a filter reaches the shared * mpv only after a headless run of the same binary plays a fraction of a second through it. */ export declare function validateVisualizerFilter(mpvBinary: string | null): Promise; /** Lets a caller that must not wait tell a finished check from one still running. */ export declare function settledVisualizerValidation(mpvBinary: string | null): VisualizerValidation | undefined; /** * A filter change mid-track can drop about 40 ms of audio, so a change waits for mpv to be idle, * paused or starting a new file. */ export declare function decideVisualizerAction(state: { wanted: boolean; installed: boolean; safe: boolean; }): VisualizerAction; /** * mpv disables a filter whose graph fails to configure for a track and keeps playing, so a disabled * entry counts as missing and gets re-added. */ export declare function hasVisualizerFilter(filters: unknown): boolean; export declare function resetVisualizerValidationsForTests(): void; export {}; //# sourceMappingURL=visualizer-filter.d.ts.map