/** * Navidrome MCP Server - Settings app route handlers * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { IncomingMessage, ServerResponse } from 'node:http'; import { type SaveTakeover, type SettingsPageHost } from './save-message.js'; /** What the settings server's host gives the Save route. */ export interface SettingsRouteContext { host: SettingsPageHost; /** A resolve means the host took over, so the route closes the server once the reply is sent. */ onSaved: (() => Promise) | undefined; close: () => Promise; } /** The caller (server.ts) owns the loopback guard, so these handlers assume a local peer. */ export declare function handleSettingsRoute(req: IncomingMessage, res: ServerResponse, method: string, path: string, context: SettingsRouteContext): Promise; //# sourceMappingURL=routes.d.ts.map