import type { CommandDef } from '../core/types.js'; export type DynamicModeGlobals = { include?: string[]; exclude?: string[]; methods?: string[]; list: boolean; search?: string; fields?: string; selectionDepth?: number; stdin?: boolean; pretty: boolean; raw: boolean; head?: number; }; export type PreparedCommandArgs = { argv: string[]; initialValues?: Record; }; export type RunDynamicModeOptions = { globals: DynamicModeGlobals; commandArgv: string[]; loadCommands: () => Promise | CommandDef[]; renderCommands: (commands: CommandDef[]) => string; executeCommand: (command: CommandDef, values: Record, argv: string[]) => Promise | unknown; prepareCommandArgs?: (argv: string[]) => Promise | PreparedCommandArgs; onEmptyCommand?: (commands: CommandDef[]) => Promise | void; }; export declare function runDynamicMode(options: RunDynamicModeOptions): Promise; export declare function parseCommandValues(command: CommandDef, argv: string[], initialValues?: Record): Record;