/** * Builds the Bun.serve `routes` table for the dummyjson.com demo. * * Maps KatanaKit's dummyjson handlers onto a Bun router: static routes, * `:param` routes (with typed `req.params`), per-method handlers, and a * `/api/*` catch-all. * * @returns A route table ready for `Bun.serve({ routes })`. * * @example * ```ts * import { useBuildDummyJsonRoutes } from "katanakit-js/adapters/bun"; * * Bun.serve({ * routes: useBuildDummyJsonRoutes(), * fetch: () => new Response("Not Found", { status: 404 }), * }); * ``` */ export declare function useBuildDummyJsonRoutes(): { "/api/status": Response; "/api/products": { GET: () => Promise; }; "/api/products/:id": { GET: (req: Bun.BunRequest<"/api/products/:id">) => Promise; }; "/api/products/search": { GET: (req: Request) => Promise; }; "/api/products/categories": { GET: () => Promise; }; "/api/products/category/:category": { GET: (req: Bun.BunRequest<"/api/products/category/:category">) => Promise; }; "/api/users": { GET: () => Promise; }; "/api/users/:id": { GET: (req: Bun.BunRequest<"/api/users/:id">) => Promise; }; "/api/posts": { GET: () => Promise; }; "/api/posts/:id": { GET: (req: Bun.BunRequest<"/api/posts/:id">) => Promise; }; "/api/quotes": { GET: () => Promise; }; "/api/quotes/random": { GET: () => Promise; }; "/api/seed": { GET: () => Response; }; "/api/*": Response; }; /** Route table type inferred from {@link useBuildDummyJsonRoutes}. */ export type DummyJsonRoutes = ReturnType; //# sourceMappingURL=routes.d.ts.map