import type { SourceInfo } from "./source-info.ts"; export type SlashCommandSource = "extension" | "prompt" | "skill"; export interface SlashCommandInfo { name: string; description?: string; source: SlashCommandSource; sourceInfo: SourceInfo; } export interface BuiltinSlashCommand { name: string; description: string; argumentHint?: string; } export declare const BUILTIN_SLASH_COMMANDS: ReadonlyArray; /** * Built-in interactive commands that take NO arguments. `/new please` used to * fall through the exact-match ladder and get sent to the model as prose — * silent and surprising. matchBareBuiltinWithArgs detects that shape so the * TUI can surface a usage warning instead. * * DERIVED from BUILTIN_SLASH_COMMANDS rather than hand-maintained: a builtin * takes arguments exactly when it declares an `argumentHint` (/model, /login, * /export, /import, /name, /compact). A hand-written list silently rotted the * first time upstream gave an existing command an argument — `/login ` * gained one in 0.84 and the stale list turned it into a usage warning. * * `/debug` is absent by construction: it is not a builtin at all, so an * extension (the debug orchestrator) legitimately owns "/debug ". */ export declare const BARE_BUILTIN_COMMAND_NAMES: ReadonlySet; /** Return the command name when `text` is `/bare-builtin `, else null. */ export declare function matchBareBuiltinWithArgs(text: string): string | null; //# sourceMappingURL=slash-commands.d.ts.map