import { SpawnOptions } from 'child_process';

declare function getAppId(appname: string): Promise<string>;
/**
 * 获取 微信开发者工具的执行路径
 * @returns Promise<string | undefined>
 */
declare function getCliPath(): Promise<string | undefined>;
declare function getIsOpenPort(): Promise<boolean>;
declare function getPort(): Promise<number>;
/**
 * 执行CLI命令
 * @param args
 */
declare function cli(...args: string[]): Promise<{
    stdout: string;
    stderr: string;
}>;
/**
* spwan 方式 调用 cli
* @param args
* @param options
*/
declare function cliSpawn(args: string[], options?: SpawnOptions): Promise<unknown>;

declare function getCommitMsg(): Promise<string>;

declare function getPkgVersion(): any;

export { cli, cliSpawn, getAppId, getCliPath, getCommitMsg, getIsOpenPort, getPkgVersion, getPort };
