/** * `openConsole` — what bare `aidlc` and `aidlc menu` open (aidlc-console/AC-1, * aidlc-console/AC-2, aidlc-console/AC-3). * * Off a terminal it keeps the old menu's fallbacks exactly: help on stderr for * bare `aidlc`, a one-line diagnostic for `aidlc menu`, exit 1 for both. * * @module */ import type { Command } from 'commander'; import { type Prompter } from '../core/prompt.js'; import { type MenuMode } from '../menu/index.js'; /** * The required positionals `argv` leaves out (aidlc-console/AC-14), or null when * its first word is not a command (aidlc-console/AC-16). Words after the leaf that * do not start with `-` count as given positionals; an option's value counts too, * which can only under-ask, never ask for something already typed. */ export declare function missingArgs(program: Command, argv: readonly string[]): string[] | null; /** * Run `aidlc ` through a throwaway program (menu/dispatch.ts). False when * commander refused it or the command set a non-zero exit code; the code is then * cleared so leaving the console exits 0 (aidlc-console/AC-16). */ export declare function runCommand(makeProgram: () => Command, argv: readonly string[]): Promise; /** * Which console a terminal of this size gets: the operator dashboard from 60 × 20, * the one-column Stream below it (operator-console/AC-1, operator-console/AC-3). */ export declare function consoleKind(size: { columns?: number; rows?: number; }): 'operator' | 'stream'; /** Colour for the dashboard: the watch view's test, and not on a `dumb` terminal (design D-6). */ export declare function dashboardColour(tty: boolean, env: NodeJS.ProcessEnv): boolean; /** Open the console, or print the non-interactive fallback (aidlc-console/AC-1..AC-3). */ export declare function openConsole(makeProgram: () => Command, mode?: MenuMode, prompter?: Prompter): Promise; //# sourceMappingURL=index.d.ts.map