/// import { ProjectConfig } from '@byted/miniprogram-utils/dist/data/project'; import archiver from 'archiver'; import { loginInfo } from './login-storage'; import { Transform } from 'stream'; export { loginInfo }; export declare const HIGH_WATER_MARK: number; export declare function getHighWaterMarkByTotalMem(): number; export declare function isMac(): boolean; export declare function isCli(): boolean; export declare function isMiniGameCli(): boolean; export declare function isIDE(): boolean; export declare const maxConcurrency: () => number; export declare function cleanArgs(cmd: any): any; export declare function createProjectConfigFile(projectName: string, projectDir: string, useTypeScript?: boolean, isPlugin?: boolean): Promise; export declare function getPackageRoot(): string; /** * Will throw {@link Error} if invalid * @param number */ export declare function validatePhoneNumber(number: string): void; /** * Will throw {@link Error} if invalid * @param code */ export declare function validateVerificationCode(code: string): void; /** * Will throw {@link Error} if invalid * @param email */ export declare function validateEmail(email: string): void; /** * Will throw {@link Error} if invalid * @param id */ export declare function validateAppId(id: string): void; /** * 简单 encode 字符串 * @param data * @returns encoded string */ export declare function mixEncode(data: string): string; export declare function clearConsole(title?: string): void; /** * The folder **`$HOME/.tma-cli`** */ export declare function getCliDefaultStoragePath(): string; export declare function getAppid(projectConfig: ProjectConfig): string; export declare function getProjectConfig(projectPath: string): Promise; export declare function getAppJson(projectConfig: ProjectConfig, projectPath: string, isGame: boolean): Promise; /** * Duplicate a stream with md5 hash of its content * @param source old source stream * @returns a stream with md5 */ export declare function getMD5Stream(source: archiver.Archiver): Promise; export declare const getNextVersion: (version: string) => string; export declare const isGameFileValid: (pattern: string) => boolean; export declare const isObject: (value: any) => boolean; export declare function sleep(timer: number): Promise; export declare function verifyLoginTypeAuth(projectPath: string): Promise; export declare function getProjectToQRCodeStepReporterDesc(report: { [k: string]: number; }): { 总耗时: string; };