import type { RouteDeclaration, RouteModel, CommonServiceRoute } from '@owlmeans/route'; export interface ServerRoute extends RouteDeclaration, ServerRouteExtras { } export interface ServiceRoute extends CommonServiceRoute, ServerRouteExtras { } export interface ServerRouteModel extends RouteModel { route: ServerRoute; /** * Does this request hit the route? The mounted path comes from the caller — a declaration knows * only the segment it contributes, and composing the rest takes the context it is attached to. */ match: (request: Request, mount: string) => boolean; isIntermediate: () => boolean; } export interface ServerRouteExtras { internalHost?: string; internalPort?: number; opened?: boolean; } export interface ServerRouteOptions { overrides?: Partial; pathField?: string; match?: (request: Request, mount: string) => boolean; } //# sourceMappingURL=types.d.ts.map