/// import * as http from "http"; import * as https from "https"; import { Handler } from "./routing"; declare class LeafLess { options: any; server: http.Server | https.Server; constructor(options?: {}); listen(...args: any[]): http.Server | https.Server; /** * route sets handlers of the given paths route('/:tool/:path', { async post(ctx) { return ctx.params; } }); * @param {string} path the url path being routed * @param {Object} handler the route handler */ route(path: string, handler: Handler): void; } export default LeafLess;