//#region packages/basic/string/toFunction.d.ts interface FunctionFormat { isArrow: boolean; isAsync: boolean; isGenerator: boolean; name?: string; param: string; body: string; arrowBody?: string; } /** * 安全拆分函数参数(支持嵌套结构) * @param paramStr - 参数字符串 * @returns 参数列表 * @example extractParams("a, b = { c: [1,2] }") → ["a", "b = { c: [1,2] }"] */ declare function extractParams(paramStr: string): string[]; /** * 解析函数字符串格式(合并正则表达式优化性能) * @param v - 输入的函数或字符串 * @returns 解析后的函数结构对象,失败返回null */ declare function getFunctionFormat(v: Function | string): FunctionFormat | undefined; /** * 将函数字符串转换为可执行函数(支持异步函数) */ declare function toFunction(str: string, key?: string): Function | undefined; //#endregion export { toFunction as i, extractParams as n, getFunctionFormat as r, FunctionFormat as t };