export interface ISupportMethds { get: T; post: T; put: T; delete: T; patch: T; } export interface SourceResult { relative?: string; absolute?: string; } /** 获取调用当前函数的源码地址 */ export declare function getCallerSourceLine(dir: string): SourceResult; /** 获取API的Key */ export declare function getSchemaKey(method: string, path: string, prefix?: string): string; /** 返回安全的JSON字符串 */ export declare function jsonStringify(data: object, space: string | number): string; /** 获取路径 */ export declare function getPath(def: string, opt?: string | boolean): string; /** 通过 schema key 获取 path */ export declare function getRealPath(key: string): string; /** 驼峰线转下划 */ export declare function camelCase2underscore(str: string): string;