import { type CachedContainer, type Container, type EditorComponent, type MarkdownTheme, type TUI } from "@catui/tui"; import type { AgentSession } from "../../../core/runtime/agent-session.js"; import type { SessionManager } from "../../../core/session/session-manager.js"; import type { AppAction, KeybindingsManager } from "../../../core/platform/keybindings.js"; import type { FooterDataProvider } from "../footer-data-provider.js"; /** Host capabilities needed by the display/info command handlers. */ export interface InfoCommandHandlersContext { readonly session: AgentSession; readonly sessionManager: SessionManager; readonly ui: TUI; readonly version: string; readonly footerDataProvider: FooterDataProvider; readonly chatContainer: CachedContainer; readonly editorContainer: Container; /** Currently mounted editor component (may be swapped by the editor adapter). */ readonly editor: EditorComponent; readonly keybindings: KeybindingsManager; showStatus(message: string): void; showError(errorMessage: string): void; showWarning(warningMessage: string): void; remountEditorShell(): void; updateTerminalTitle(): void; getMarkdownThemeWithSettings(): MarkdownTheme; showLoadedResources(options?: { extensionPaths?: string[]; force?: boolean; showDiagnosticsWhenQuiet?: boolean; }): void; } export declare class InfoCommandHandlersController { private readonly ctx; constructor(ctx: InfoCommandHandlersContext); handleExportCommand(text: string): Promise; handleShareCommand(): Promise; handleCopyCommand(): void; /** * Handle /status command - show agent status card (Codex-style) */ handleStatusCommand(): Promise; /** * Handle /usage command - show token usage statistics */ handleUsageCommand(): Promise; handleNameCommand(text: string): void; handleSessionCommand(): void; handleChangelogCommand(): void; /** * Capitalize keybinding for display (e.g., "ctrl+c" -> "Ctrl+C"). */ private capitalizeKey; /** * Get capitalized display string for an app keybinding action. */ getAppKeyDisplay(action: AppAction): string; /** * Get capitalized display string for an editor keybinding action. */ private getEditorKeyDisplay; handleHotkeysCommand(): void; handleRenderDebugCommand(): void; handleArminSaysHi(): void; handleShowResourcesCommand(): void; handleDaxnuts(): void; }