export declare function main(cfgPath?: string): Promise;