/** * Navidrome MCP Server - Audio output devices * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ /** `id` is mpv's device `name` and `name` is mpv's device `description`. */ export interface AudioDevice { id: string; name: string; } export declare const AUTO_DEVICE_ID = "auto"; export declare const NULL_AUDIO_OUTPUT = "null"; export declare const AUTO_DEVICE: AudioDevice; export declare function parseAudioDeviceHelp(output: string): AudioDevice[]; export declare function parseAudioDeviceList(value: unknown): AudioDevice[]; /** * Windows can re-register an output under a new id, such as when a Bluetooth device connects. An id * listed beside the lost one is a different output, such as a second speaker of the same model. */ export declare function findReplacementDevice(lost: AudioDevice, devices: readonly AudioDevice[], listedBeside: ReadonlySet): AudioDevice | null; /** A saved device missing under its own id is matched by name, so a re-registered output still opens. */ export declare function resolveSavedDevice(saved: T, devices: readonly AudioDevice[]): T | AudioDevice; export declare function audioDeviceDriver(id: string): string; /** * mpv lists every output once per driver it was built with, such as `wasapi` and `openal` on Windows, * so one speaker would show several times without this. */ export declare function filterToOneDriver(devices: readonly AudioDevice[], preferredDriver: string | null): AudioDevice[]; export declare function probeAudioDevices(mpvBinary: string): Promise; //# sourceMappingURL=audio-devices.d.ts.map