///
///
import type Chalk from 'chalk';
import type * as Cheerio from 'cheerio';
import type * as childProcess from 'child_process';
import { compile } from './path-to-regexp';
import type COS from 'cos-nodejs-sdk-v5';
import type * as CronParser from 'cron-parser';
import type * as CryptoType from 'crypto';
import type * as Dotenv from 'dotenv';
import type * as DotenvExpand from 'dotenv-expand';
import type { default as FormData_2 } from 'form-data';
import { fs } from 'fs';
import type * as FsExtra from 'fs-extra';
import type * as fsModule from 'fs';
import type * as httpModule from 'http';
import type * as JoseType from 'jose';
import type * as MiniprogramCI from 'miniprogram-ci';
import type * as NetType from 'net';
import type * as osModule from 'os';
import { parse } from './path-to-regexp';
import type * as path from 'path';
import { PlatformPath } from 'path';
import { ScoreInfoType } from '../types';
import { StdioOptions } from 'child_process';
import { tokensToFunction } from './path-to-regexp';
import { tokensToRegExp } from './path-to-regexp';
import type * as UtilType from 'util';
import { WorkBook } from 'xlsx';
import { WorkSheet } from 'xlsx';
import type * as XLSX from 'xlsx';
/**
* 将 ArrayBuffer 转换为字符串
* 支持多种字符编码,优先使用 TextDecoder API
* @param buffer - 要转换的 ArrayBuffer
* @param encoding - 字符编码,默认为 'utf-8'
* @returns 转换后的字符串
* @example
* ```ts
* const buffer = new ArrayBuffer(8);
* const str = ab2str(buffer); // 使用 UTF-8 编码
* const gbkStr = ab2str(buffer, 'gbk'); // 使用 GBK 编码
* ```
*/
export declare function ab2str(buffer: ArrayBuffer, encoding?: string): string;
export declare const ACT_ID_MAP: {
GP: string;
};
/**
* 为 Vue 组件添加 emits 属性
* @param {string} filePath 组件地址
* @param {string} [fileContent] 组件内容
* @returns {string} 新的组件内容
*
* @example
* ```ts
* addNameForComponent('xxx.vue');
* ```
*/
export declare function addEmitsForComponent(filePath: string, fileContent?: string): string | undefined;
/**
* 添加 MSDK 原生回调监听器
* 用于监听原生层发送给 Web 层的消息
* @param callback - 回调函数,接收原生层传递的数据
* @example
* ```ts
* addMsdkNativeCallbackListener((data) => {
* console.log('收到原生消息:', data);
* });
* ```
*/
export declare function addMsdkNativeCallbackListener(callback: Function): void;
/**
* 为 Vue 组件添加、修正 name 属性
* @param {string} filePath 组件地址
* @param {string} componentName 组件名称
* @returns {string} 新的组件内容
*
* @example
* ```ts
* addNameForComponent('xxx.vue', 'PressUploader');
* ```
*/
export declare function addNameForComponent(filePath: string, componentName: string): any;
/**
* add num and avoid float number
* @param {number} num1 第1个数字
* @param {number} num2 第2个数字
* @returns {number} 结果
* @example
* ```ts
* addNumber(0.1, 0.2); // 0.3
* ```
*/
export declare function addNumber(num1: number, num2: number): number;
/**
* 添加或更新配置
*
* @param {object} config 配置信息
* @param {object} config.keyValue 配置对象
* @param {string} config.keyValue.key 配置的key
* @param {string} config.keyValue.value 配置的value
* @param {number} config.valueType 配置类型,1: NUMBER, 2: STRING, 3: TEXT, 4: JSON, 5: XML, 18: 日期, 20: yaml
* @param {object} config.secretInfo 密钥信息
* @param {string} config.secretInfo.appId 项目Id
* @param {string} config.secretInfo.userId 用户Id
* @param {string} config.secretInfo.secretKey 密钥
* @param {string} config.secretInfo.envName 配置环境
* @param {string} config.secretInfo.groupName 配置组
* @returns {Promise