import { HTTPMethods } from '../client/types.js'; import { RouteFactory, HandlerFunction } from './types.js'; declare class Router { protected routes: RouteFactory; addRoute(path: string, method: HTTPMethods, handler: HandlerFunction): Promise; get(path: string, handler: HandlerFunction): Promise; post(path: string, handler: HandlerFunction): Promise; put(path: string, handler: HandlerFunction): Promise; delete(path: string, handler: HandlerFunction): Promise; } export { Router as default };