import { HttpTypes } from "@medusajs/types";
import { Client } from "../client.js";
import { ClientHeaders } from "../types.js";
/**
 * This class is used to send requests to Admin Search API routes.
 *
 * @since 2.19.0
 */
export declare class Search {
    /**
     * @ignore
     */
    private client;
    /**
     * @ignore
     */
    constructor(client: Client);
    /**
     * This method searches across entities. When the Search Module is enabled,
     * results come from its indexes; otherwise each entity is queried with the
     * same free-text `q` filter the list endpoints support.
     *
     * Results are grouped per entity and paginated independently.
     *
     * @param {HttpTypes.AdminSearchParams} query - Search query and pagination parameters.
     * @param {ClientHeaders} headers - Headers to pass in the request.
     * @returns {Promise<HttpTypes.AdminSearchResponse>} The grouped search results.
     *
     * @example
     * sdk.admin.search.list({ q: "shirt", limit: 5 })
     * .then(({ results }) => {
     *   console.log(results)
     * })
     *
     * @tags search
     * @since 2.18.1
     */
    list(query?: HttpTypes.AdminSearchParams, headers?: ClientHeaders): Promise<HttpTypes.AdminSearchResponse<Record<string, unknown>>>;
}
//# sourceMappingURL=search.d.ts.map