import { SwaggerJson, Json2Service } from '../consts'; export interface YApiCategory { name: string; desc: string; add_time: number; up_time: number; index: number; proBasepath?: string; proName?: string; proDescription?: string; list: YApiItem[]; } export interface YApiItem { tag: any[]; method: string; title: string; path: string; req_body_other: string; req_body_type: string; res_body_type: string; add_time: number; up_time: number; markdown: string; desc: string; res_body: string; res_schema_body?: string; index: number; api_opened: boolean; res_body_is_json_schema: boolean; req_body_form: any[]; req_body_is_json_schema: boolean; req_params: any[]; req_headers: any[]; req_query: any[]; query_path: QueryPath; type: string; status: string; } export interface QueryPath { path: string; params: any[]; } export interface STag { name?: string; description?: string; } export default function yapiJSon2swagger(yapiList: YApiCategory[], yapiConfig?: Json2Service['yapiConfig']): SwaggerJson; export declare type SwaggerLikeJson = ReturnType;