/** * Navidrome MCP Server - Subcommand dispatch for the navidrome-mcp bin * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ export interface CliIo { /** Read lazily, so a run that names a command never touches process.stdin. */ stdinIsTTY: () => boolean; stdout: (text: string) => void; stderr: (text: string) => void; } type CommandAction = { kind: 'help'; } | { kind: 'load'; load: () => Promise; }; interface CliCommand { name: string; aliases: readonly string[]; description: readonly string[]; action: CommandAction; } /** Table order is help order. */ export declare const COMMANDS: readonly CliCommand[]; /** Reads the two paths on each call, since NAVIDROME_CONFIG_PATH can change them. */ export declare function buildHelpText(): string; /** * No argument is the stdio server a client launches, unless a person typed it at a terminal. * Returns the exit code, which is 1 for an unknown command. */ export declare function runCli(args: readonly string[], io: CliIo): Promise; export {}; //# sourceMappingURL=dispatch.d.ts.map