/** * Navidrome MCP Server - Spawn the standalone web server as an IPC child * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import { type Config } from '../config.js'; import { type WebEndpoint, type WebOwnerProbe } from './acquire.js'; /** `spawned` means only that a child launched. Port-as-lock decides whether it becomes owner. */ type WebServerStatus = 'running' | 'spawned' | 'unavailable'; /** Lets unit tests drive {@link ensureWebForPlayback} without real sockets or child processes. */ export interface RespawnDeps { probe: (startup: WebEndpoint) => Promise; spawn: () => WebServerStatus; lease: (port: number, secure: boolean) => Promise; } /** * Probes fresh before every play, since the user can power the player off mid-session. Gated on * features.playback and webui.enabled, because the MCP owns mpv itself when the UI is off. */ export declare function ensureWebForPlayback(config: Config, deps?: RespawnDeps): Promise; export {}; //# sourceMappingURL=spawn.d.ts.map