import type { Context, NodeApplication } from 'alp-types'; import type { Router, RouteMatch, RouterBuilder } from 'router-segments'; export type AlpRouteRef = (ctx: Context) => Promise | void; type ReturnType = (app: NodeApplication) => AlpRouteRef; export declare const createAlpRouterBuilder: () => RouterBuilder; export type UrlGenerator =

| undefined>(routeKey: string, params?: P) => string; declare module 'alp-types' { interface NodeApplication { router?: Router; } interface BaseContext { urlGenerator: UrlGenerator; redirectTo:

>(to: string, params?: P) => Promise; } interface Context { route: RouteMatch; } } export default function alpRouter(router: Router): ReturnType; export {}; //# sourceMappingURL=index.d.ts.map