import './KlevuApiRawResponse-82e24d1e.js';
import { K as KlevuTypeOfRequest } from './klevuFetch-ab326dc0.js';
import { c as cleanSearchQuery } from './search-58784dca.js';
import './klevu-init-ea2d74dc.js';

const defaults = {
    id: "suggestions",
    limit: 5,
};
/**
 * Return suggestion on given search term
 *
 * @category Query
 * @param term search term
 * @param options
 * @returns
 */
function suggestions(term, options) {
    const params = Object.assign(Object.assign({}, defaults), options);
    const query = Object.assign({ typeOfRequest: KlevuTypeOfRequest.Suggestion, query: cleanSearchQuery(term) }, params);
    return {
        klevuFunctionId: "suggestions",
        suggestions: [query],
    };
}

export { suggestions as s };

//# sourceMappingURL=suggestions-e0f00250.js.map