import Command from "./command"; import Option from "./option"; import Argument from "./argument"; export { CommandpostError, ErrorReason } from "./error"; export { Command, Option, Argument }; /** * Create new top level command. * @param cmdName * @returns {Command} */ export declare function create(cmdName: string): Command; /** * exec parsing and call callback. * @param cmd it created by create function. * @param argv pass process.argv * @returns {Promise<{}>} */ export declare function exec(cmd: Command, argv: string[]): Promise<{}>;