import type { TuiBackend } from './tui-backend.js'; import type { TuiState } from './tui-types.js'; export interface TuiControlCommandsContext { client: TuiBackend; state: TuiState; sessionVersion?: () => number; input?: (title: string) => Promise; choose: (title: string, options: string[]) => Promise; showText: (title: string, text: string, load?: () => Promise) => void; refresh: () => void; } export declare function createTuiControlCommands(context: TuiControlCommandsContext): (name: string, args: string) => Promise;