/** Base URL of the public dummyjson.com REST API. */ export declare const DUMMYJSON_BASE_URL = "https://dummyjson.com"; /** * The dummyjson.com API definition — plain data, so importing this module runs * nothing and hits no network. * * Register it once with `defineApiConfig` before any {@link useDummyJsonProducts}-style * handler; there is no separate init call to remember. * * @example * ```ts * import { defineApiConfig } from "katanakit-js"; * import { dummyJsonApiConfig, useDummyJsonProducts } from "katanakit-js/adapters/bun"; * * defineApiConfig(dummyJsonApiConfig); * * const response = await useDummyJsonProducts(); * ``` */ export declare const dummyJsonApiConfig: { dummyjson: { baseUri: string; endpoints: { products: string; productById: string; productSearch: string; productCategories: string; productByCategory: string; users: string; userById: string; posts: string; postById: string; quotes: string; quoteRandom: string; }; }; }; /** Serializes `data` into a JSON {@link Response}. */ export declare function jsonResponse(data: unknown, status?: number): Response; /** * Lists products from dummyjson.com. * * @returns A JSON `Response` wrapping the product list. */ export declare function useDummyJsonProducts(): Promise; /** * Fetches a single product by id. * * @param id - The product id. * @returns A JSON `Response` wrapping the product. */ export declare function useDummyJsonProductById(id: string): Promise; /** * Searches products by a free-text query. * * @param query - The search term. * @returns A JSON `Response` wrapping the search results. */ export declare function useDummyJsonProductSearch(query: string): Promise; /** * Lists all product categories. * * @returns A JSON `Response` wrapping the category list. */ export declare function useDummyJsonProductCategories(): Promise; /** * Lists products within a category. * * @param category - The category slug (e.g. `smartphones`). * @returns A JSON `Response` wrapping the products. */ export declare function useDummyJsonProductsByCategory(category: string): Promise; /** * Lists users from dummyjson.com. * * @returns A JSON `Response` wrapping the user list. */ export declare function useDummyJsonUsers(): Promise; /** * Fetches a single user by id. * * @param id - The user id. * @returns A JSON `Response` wrapping the user. */ export declare function useDummyJsonUserById(id: string): Promise; /** * Lists posts from dummyjson.com. * * @returns A JSON `Response` wrapping the post list. */ export declare function useDummyJsonPosts(): Promise; /** * Fetches a single post by id. * * @param id - The post id. * @returns A JSON `Response` wrapping the post. */ export declare function useDummyJsonPostById(id: string): Promise; /** * Lists quotes from dummyjson.com. * * @returns A JSON `Response` wrapping the quote list. */ export declare function useDummyJsonQuotes(): Promise; /** * Fetches a random quote from dummyjson.com. * * @returns A JSON `Response` wrapping the quote. */ export declare function useDummyJsonRandomQuote(): Promise; //# sourceMappingURL=dummyjson.service.d.ts.map