import { CliDefaultGlobalArgs, Cli } from "@hediet/cli-lib";
import { CliInfo } from "./cli-info";
export interface RunDefaultCliOptions<TCmdData> {
    /**
     * The cli to process.
     */
    cli: Cli<TCmdData, CliDefaultGlobalArgs>;
    /**
     * 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<void>;
    /**
     * 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<TCmdData>(options: RunDefaultCliOptions<TCmdData>): void;
//# sourceMappingURL=runCliWithDefaultArgs.d.ts.map