import { Class, Configuration, Invocation, RouteInfo } from "@plumjs/core"; import { ClassReflection } from "tinspector"; import { Context } from "koa"; interface Issue { type: "error" | "warning" | "success"; message?: string; } interface TestResult { route: RouteInfo; issues: Issue[]; } export interface TransformOption { root?: string; } export declare function striveController(name: string): string; export declare function getControllerRoute(controller: ClassReflection): string; export declare function transformController(object: ClassReflection | Class, opt?: TransformOption): RouteInfo[]; export declare function transformModule(path: string): RouteInfo[]; export declare function router(infos: RouteInfo[], config: Configuration, handler: (ctx: Context) => Invocation): (ctx: Context, next: () => Promise) => Promise; export declare function analyzeRoutes(routes: RouteInfo[]): TestResult[]; export declare function printAnalysis(results: TestResult[]): void; export {};