/** * [WHO]: Pure parser that turns the raw `/goal` slash-command args string into a ParsedGoalCommand (one of help/show/set/clear/edit/pause/resume) plus buildGoalHelp * [FROM]: Depends only on ./goal-types * [TO]: Consumed by ./goal-command (handler) and the index module (autocomplete) * [HERE]: extensions/builtin/goal/goal-parser.ts - argument parsing; no I/O, no UI */ import type { AutocompleteItem } from "@catui/tui"; export type ParsedGoalCommand = { type: "help"; } | { type: "show"; } | { type: "clear"; } | { type: "edit"; } | { type: "pause"; } | { type: "resume"; } | { type: "set"; objective: string; }; export declare function parseGoalCommand(input: string): ParsedGoalCommand; export declare const GOAL_USAGE_TEXT: string; export declare function buildGoalHelp(): string; export declare function getGoalArgumentCompletions(argumentPrefix: string): AutocompleteItem[];