import { Route } from './route.js'; import { HttpRouteCollection, RouteObjectAttributes } from '@supercharge/contracts'; export declare class RouteCollection implements HttpRouteCollection { /** * Stores all registered routes. */ private routes; /** * Create a new instance. */ constructor(); /** * Register a new route to the collection. */ add(route: Route | Route[]): Route | Route[]; /** * Returns all registered routes. */ all(): Route[]; /** * Clear all registered routes. */ clear(): this; /** * Returns the number of routes registerd to this route collection. */ count(): number; /** * Returns the attributes of all routes. */ toJSON(): RouteObjectAttributes[]; }