import type { HTTPMethod } from "../constants.js"; import type { Route } from "../Route.js"; import type { RouteHandler, RouteMatchCallback } from "../types.js"; /** * Registers a `RegExp`, string, or function with a caching * strategy to a singleton {@linkcode Router} instance. * * @param capture If the capture param is a {@linkcode Route}, all other arguments will be ignored. * @param handler A callback function that returns a promise resulting in a response. * This parameter is required if `capture` is not a {@linkcode Route} object. * @param method The HTTP method to match the route against. Defaults to `'GET'`. * @returns The generated {@linkcode Route} object, which can then be provided to {@linkcode unregisterRoute} if needed. * @deprecated */ export declare const registerRoute: (capture: RegExp | string | RouteMatchCallback | Route, handler?: RouteHandler, method?: HTTPMethod) => Route; //# sourceMappingURL=registerRoute.d.ts.map