import { type BinaryLike, type BinaryToTextEncoding } from 'node:crypto'; /** * 将字符串转换为小驼峰命名 * @param {string} str 需要转换的字符串 * @returns {string} 转换后的小驼峰命名字符串 * @example * toCamelCase('hello-world') // 'helloWorld' * toCamelCase('foo-bar') // 'fooBar' */ export declare function toCamelCase(str: string): string; /** * 将字符串转换为驼峰命名 * @param {string} name 需要转换的字符串 * @returns {string} 转换后的驼峰命名字符串 * @example * convertToCamelCase('hello-world') // 'HelloWorld' * convertToCamelCase('foo-bar-ui') // 'FooBarUI' */ export declare function convertToCamelCase(name: string): string; /** 位于项目根目录下的位置 * @param {string} src 路径 * @returns {string} 位于项目根目录下的位置 */ export declare function resolveProgram(...src: string[]): string; /** 位于项目根目录node_modules下的位置 * @param {string} name 路径 * @returns {string} 位于项目根目录node_modules下的位置 */ export declare function node_modules(...name: string[]): string; export declare function isObject(target: unknown): target is object; // eslint-disable-next-line @typescript-eslint/no-explicit-any type AnyFunction = (...a: any[]) => any; export declare function isFunction(target: T): target is T & AnyFunction; export declare function transformModule(obj: object | string): string; export declare function empty(): void; export type AlgorithmIdentifier = 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512'; interface DigestOption { algorithm?: string; secret?: string; encoding?: BinaryToTextEncoding; } /** * 为内容生成摘要 * @param {String | Uint8Array} data 内容 * @param {DigestOption} option 密钥 * @returns {Promise} 摘要字符串 */ export declare function digest(data: BinaryLike, option?: DigestOption): string; /** * MD5 加密 * @param {BinaryLike} data - 要加密的字符串 * @param {BinaryToTextEncoding} encoding - 编码格式,默认 hex * @returns {string} 加密后的字符串 */ export declare function md5(data: BinaryLike, encoding?: BinaryToTextEncoding): string; /** * 获取配置文件内容(Typescript) * @template T 配置文件类型 * @param {string} path 配置文件路径 * @param {T} [normal] 默认配置 * @returns {Promise} 配置文件内容 */ export declare function getConfigWithTypescript(path: string, normal?: T): T; export { };