import { CliDefaultGlobalArgs, Cli } from "@hediet/cli-lib"; import { CliInfo } from "./cli-info"; export interface RunDefaultCliOptions { /** * The cli to process. */ cli: Cli; /** * General app info for help and version commands. * Use `cliInfoFromPackageJson` to read info from your `package.json`. */ info: CliInfo; /** * Asynchronously process the data returned by the `getData` of the selected command. */ dataHandler: (data: TCmdData) => Promise; /** * The arguments to parse. Use `process.argv.slice(2)` by default. */ args?: string[]; } /** * Processes command line arguments and invokes the handler * with data obtained from `getData` of the selected command. * Also processes `--help`, `--version` and other global flags. */ export declare function runDefaultCli(options: RunDefaultCliOptions): void; //# sourceMappingURL=runCliWithDefaultArgs.d.ts.map