import { CTX } from "./makectx"; export declare type HandlerHTTPMethod = (ctx: CTX) => Promise; export declare type MatchObject = { params: any; handler: Handler; }; export declare type RouteObject = { match: (str: string) => MatchObject; }; export declare type Handler = { [key: string]: any; get?: HandlerHTTPMethod; post?: HandlerHTTPMethod; put?: HandlerHTTPMethod; delete?: HandlerHTTPMethod; options?: HandlerHTTPMethod; }; declare let routing: { set(path: string, handler: Handler): void; get(path: string): MatchObject | { handler: Handler; }; }; export { routing };