/** * Build the shared slash-command registry. * * Single owner of which commands exist and how they're wired — used by both * the readline REPL (`repl.ts`) and the Ink TUI (`tui/`). Handlers follow one * contract: they return `{ output, exit }` and never write to stdout directly. * * `interactive: true` marks handlers that own stdin/stdout (inquirer wizards, * ora spinners, the setup wizard). They run in the readline REPL but the TUI * defers them (Ink owns stdin there). */ import type { Agent } from '../agent.js'; import { CommandRegistry } from './registry.js'; export declare function buildCommandRegistry(agent: Agent, config: any, activeProviderType: string, gatewayInstance?: any): CommandRegistry;