import { type CommandLineOptions, type OptionDefinition } from 'command-line-args'; export type ModeAction = (argv: string[]) => void | Promise; export type ActionModule = { action: ModeAction; }; export type ActionTable = Record; export declare function isHelpArgs(argv: string[]): boolean; export declare function findMainCommandNameAndArgs(argv: string[]): [string | null, string[]]; export type CommandAndArgs = { needHelp: false; command: T; argv: string[]; }; export type CommandAndArgsHelp = { needHelp: true; error: string | null; }; export type CommandAndArgsResult = CommandAndArgs | CommandAndArgsHelp; export declare function getCommandAndArgs(argv: string[], actions: ActionTable): CommandAndArgsResult; export type CommandLineParsed = { needHelp: false; commandLineOptions: CommandLineOptions; }; export type CommandLineHelp = { needHelp: true; error: Error | null; }; export type CommandLineResult = CommandLineParsed | CommandLineHelp; export declare function parseCommandLine(argv: string[], optionDefinitions: OptionDefinition[]): CommandLineResult; //# sourceMappingURL=args.d.ts.map