/** * Navidrome MCP Server - Settings app HTTP server (loopback-only, on-demand) * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { SaveTakeover, SettingsPageHost } from './save-message.js'; interface ConfigServer { url: string; close: () => Promise; } interface ConfigServerOptions { host: SettingsPageHost; /** * The Jukebox Remote sets this for its setup mode and its All settings button, since it may run * without a terminal and the settings page has no power button to stop an abandoned server. */ idleTimeoutMs?: number; onIdleTimeout?: () => void; /** * Runs after each Save writes settings.json, before the reply. A rejection keeps this server, and * the page shows its reason. A resolve means the host took over, so this server closes after the reply. */ onSaved?: () => Promise; } /** * Settings carry credentials, so the server binds loopback and also checks each peer. An ephemeral * port never collides with the Jukebox Remote. */ export declare function startConfigServer(options: ConfigServerOptions): Promise; export {}; //# sourceMappingURL=server.d.ts.map