import type { PayloadAction } from '@reduxjs/toolkit'; import type { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js'; import { type ApplySortPayload } from './sort-actions.js'; export type { ApplySortPayload }; /** * The sort action creators. * * @group Actions * @category Sort */ export interface SortActionCreators { /** * Applies a sort criterion. * * @param payload - The payload of the action. * @returns A dispatchable action. */ applySort(payload: ApplySortPayload): PayloadAction; } /** * Loads the commerce sort reducer and returns the available sort action creators. * * @param engine - The commerce engine. * @returns An object holding the sort action creators. * * @group Actions * @category Sort */ export declare function loadSortActions(engine: CommerceEngine): SortActionCreators;