import { facetOrderReducer as facetOrder } from '../facets/facet-order/facet-order-slice.js';
import { facetSetReducer as facetSet } from '../facets/facet-set/facet-set-slice.js';
import { paginationReducer as pagination } from '../pagination/pagination-slice.js';
import { queryReducer as query } from '../query/query-slice.js';
import { querySetReducer as querySet } from '../query-set/query-set-slice.js';
import { sortReducer as sort } from '../sort/sort-slice.js';
import { restoreSearchParameters, restoreTab, } from './search-parameter-actions.js';
/**
 * Loads the facet order, facet set, pagination, query, query set, and sort reducers and returns the available search parameters action creators.
 *
 * @param engine - The headless engine.
 * @returns An object holding the search parameters action creators.
 *
 * @group Actions
 * @category SearchParameters
 */
export function loadSearchParameterActions(engine) {
    engine.addReducers({
        facetOrder,
        facetSet,
        pagination,
        query,
        querySet,
        sort,
    });
    return {
        restoreSearchParameters,
        restoreTab,
    };
}
