/** * @fileoverview Command router. * * Dispatches parsed argv to meta commands (run, tools, recipe, agent) or to * dynamic `txv [input]` tool execution. Tool aliases * route through registry metadata, not one-off command files. */ import { PluginMissingError, type ToolRegistry } from '@textavia/core'; import { type ProcessSurface } from './execute.js'; import { type PromptFn, resolveInput } from './input.js'; /** Dependencies injected into the router for testability. */ export interface RouterDeps { readonly registry: ToolRegistry; readonly version: string; readonly proc: ProcessSurface; readonly prompt?: PromptFn; readonly loader?: typeof import('./registry-builder.js').loadOptionalPlugin; } /** Runs the CLI for a given argv and returns the process exit code. */ export declare function runCli(argv: readonly string[], deps: RouterDeps): Promise; export { PluginMissingError }; export { resolveInput }; //# sourceMappingURL=router.d.ts.map