import { Jups } from './jups'; import { Request } from './request'; import { Response } from './response'; import { Variable } from './routes'; /** * A subapp enables easy organisation of routes by being able to split up specific groups of routes. * This is pretty much the `Jups` class except it just stores routes within it without * calling the `listen` method. */ export interface SubApp { /** * The original given route for the subapp. */ base: string | RegExp; /** * The compiled Regex from the base. * If the base is Regex, this will match it. */ regex: RegExp; /** * The compiled variables for the subapp if any is needed. */ variables?: Variable[]; /** * The `Jups` instance of the subapp. */ app: Jups; } /** * This function handles the routing for the subapps of an app. * * @param jups The `Jups` instance that contains the subapps. * @param req The `Request` object. * @param res The `Response` object. * @param url The URL for checking for matches. */ export declare function handleSubApps(jups: Jups, req: Request, res: Response, url: string): void;