import type { ToolDeps } from './tools/shared.js'; export interface CommandResult { kind: 'success' | 'error'; text: string; } export interface CommandInvocation { rawInput: string; signal?: AbortSignal; } export interface CommandDefinition { name: string; description: string; input: { hint: string; }; recordInput: boolean; handler(invocation: CommandInvocation): Promise; } export declare const USAGE: string; export declare function setupText(ref: string): string; export declare function docsText(page: string | undefined): string; /** Build the command definition (registered by the plugin entry when the commands service exists). */ export declare function buildRtaCommand(deps: ToolDeps): CommandDefinition;