type RequestRoute = RequestInit & { url: string; body: any; }; type Route = (init: RequestRoute) => Promise; /** * 注册路油 * @param method * @param handle * @returns */ export declare function registerRoute(method: string, handle: Route): void; export declare function exec(method: string, data: RequestRoute, callback: (res: any) => void): Promise; export declare function handleURL(url: string, init: RequestInit): { url: string; method: string; init: any; }; export {};