import { PontxSpec } from "@pontx/spec"; export type FileStructure = { [fileName: string]: string | FileStructure; }; export declare function generateFiles(fileStructure: FileStructure, basePath: string): any; export declare function reGenerateFiles(fileStructure: FileStructure, basePath: string): Promise; export declare function generateRemoteCache(remoteCacheDir: string, specs: PontxSpec[]): Promise; /** * 生成 API 请求代码 * @param api * @returns * try { * const response = await pontx.api.request(api, params, bodyParams); * } catch (error) { * } */ export declare function generateApiRequestCode(originName: string, controllerName: string, apiName: string, params: Record, bodyParams: Record): string; /** * 生成 CLI 调用命令 * @returns * pontx call specName.tagName.apiName --param1 value1 --body '{"key": "value"}' */ export declare function generateApiCliCommandCode(originName: string, controllerName: string, apiName: string, params: Record, bodyParams: Record): string; export declare function generateApiUseRequestCode(originName: string, controllerName: string, apiName: string, params: Record): string;