export = RoutePart; /** * Defines a new route part * * @class RoutePart */ declare class RoutePart { subparts: {}; placeholders: any; handler: any; /** * Checks if an url part already exists * * @param {string} part * @returns {boolean} */ exists(part: string): boolean; /** * Gets the next element of an URL part, creating a new * tree leaf if necessary * * @param {string} part * @returns {RoutePart} */ getNext(part: string): RoutePart; /** * Returns a RouteHandler instance corresponding to the provided URL * Returns null if no handler was found * * @param {HttpMessage} message * @returns {RouteHandler} registered function handler */ getHandler(message: HttpMessage): RouteHandler; } import RouteHandler = require("./routeHandler");