/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * What a typed line means before the model sees it. * * Only lines that are exactly a known command are one: a message beginning * "/exit is the command that..." is a message, and a model that never receives * it because of a prefix match is a chat that silently eats input. */ export type ChatLineIntent = { readonly kind: "blank"; } | { readonly kind: "quit"; } | { readonly kind: "reset"; } | { readonly kind: "help"; } | { readonly kind: "unknown-command"; readonly typed: string; } | { readonly kind: "message"; readonly text: string; }; export declare function classifyChatLine(line: string): ChatLineIntent; export declare const CHAT_HELP_LINES: readonly string[];