/** * Match a `#command` at the start of text, requiring a word boundary * (whitespace or end-of-string after the prefix). * Returns the trimmed argument string, or null if no match. */ export declare function matchCommand(text: string, prefix: string): string | null; /** * Like matchCommand, but preserves multi-line bodies. Accepts space, tab, * newline, or CR as the boundary after the command prefix; strips at most * one leading boundary character and returns the rest verbatim (so internal * newlines and whitespace are preserved). Returns '' for no argument. */ export declare function matchCommandRaw(text: string, prefix: string): string | null; /** * Handle the #new command: create a Teams channel and return a link. * Returns null if the text is not a #new command. */ export declare function handleNewCommand(text: string): Promise; /** * Handle #add-dir, #remove-dir, #list-dirs commands. * Returns null if the text is not a directory command. */ export declare function handleDirCommand(text: string, conversationKey: string): string | null; /** * Handle #workspace command: switch the agent's working directory for this conversation. * Returns null if the text is not a #workspace command. * * - `#workspace ` — set per-session workspace override * - `#workspace` (no arg) — clear override, revert to default-workspace or conversation workspace */ export declare function handleWorkspaceCommand(text: string, conversationKey: string): string | null; /** * Handle #default-workspace command: set the global default working directory for all conversations. * Returns null if the text is not a #default-workspace command. * * - `#default-workspace ` — set global default * - `#default-workspace` (no arg) — clear global default */ export declare function handleDefaultWorkspaceCommand(text: string): string | null; /** * Handle #help command: list all available # commands. * Returns null if the text is not a #help command. */ export declare function handleHelpCommand(text: string): string | null; /** Available models for the #model command. */ export declare const MODELS: { id: string; label: string; description: string; }[]; /** * Handle #list-models command: show available models. * Returns null if the text is not a #list-models command. */ export declare function handleListModelsCommand(text: string, conversationKey: string): string | null; /** * Handle #model command: switch the agent's model for this conversation. * Returns null if the text is not a #model command. * * - `#model` (no arg) — show current model + available models * - `#model ` — set per-session model override * - `#model reset` — clear override, revert to global default */ export declare function handleModelCommand(text: string, conversationKey: string): string | null; /** * Handle #default-model command: set the global default model for all conversations. * Returns null if the text is not a #default-model command. * * - `#default-model ` — set global default * - `#default-model` (no arg) — clear global default, revert to config file default */ export declare function handleDefaultModelCommand(text: string): string | null; /** * Handle #backend command: switch the agent backend (Claude or Copilot CLI) for this conversation. * Returns null if the text is not a #backend command. * * - `#backend` (no arg) — show current backend * - `#backend ` — set per-conversation backend * - `#backend reset` — clear override, revert to global default / config * * Switching backends clears the persisted session id so the new backend * starts a fresh conversation (their session formats are incompatible). */ export declare function handleBackendCommand(text: string, conversationKey: string): string | null; /** * Handle #default-backend command: set the global default backend for all conversations. * Returns null if the text is not a #default-backend command. * * - `#default-backend ` — set global default * - `#default-backend` (no arg) — clear global default, revert to config file */ export declare function handleDefaultBackendCommand(text: string): string | null; /** * #list-sessions — list Claude sessions in the conversation's workspace, * numbered, newest first. Persists {sessionId, cwd} refs for #session . */ export declare function handleListSessionsCommand(text: string, conversationKey: string): Promise; /** * #session — attach the conversation to session from the last listing, * auto-switching workspace cwd. The next message resumes it. */ export declare function handleSessionCommand(text: string, conversationKey: string): Promise; /** * #system-prompt [prompt] — per-conversation override of the OVERRIDABLE layer. * The NECESSARY layer (tools, schedule rules, execution model) is always present. * no arg → clear override, clear session * has arg → store override (multi-line preserved), clear session * On success, echoes the full composed prompt that will be in effect. */ export declare function handleSystemPromptCommand(text: string, conversationKey: string): string | null; /** * #default-system-prompt — overwrite the global OVERRIDABLE layer file. * No arg is a usage error (use #reset-system-prompt to restore the built-in default). * On success, echoes the full composed prompt that will be in effect for conversations * with no per-conversation override. */ export declare function handleDefaultSystemPromptCommand(text: string): string | null; /** * #reset-system-prompt — restore the built-in default and clear this conversation's override. */ export declare function handleResetSystemPromptCommand(text: string, conversationKey: string): string | null;