import type { RouterTypes } from "bun"; /** * Creates a router that manages route handlers. * * This function returns an object with two methods: * - `add`: Registers a new route. * - `getRoutes`: Returns all registered routes. * * The router ensures that duplicate route definitions (same HTTP method and path) * are not allowed. If a duplicate is detected, an error is thrown. * * @returns An object with `add` and `getRoutes` functions. */ export declare function createRoutes(): { add: (route: [T, RouterTypes.RouteHandlerObject]) => { add: /*elided*/ any; getRoutes: () => Record>; }; getRoutes: () => Record>; };