import type { PayloadAction } from '@reduxjs/toolkit'; import type { CommerceEngine } from '../../../../app/commerce-engine/commerce-engine.js'; import { type ToggleExcludeNumericFacetValuePayload, type ToggleSelectNumericFacetValuePayload, type UpdateNumericFacetValuesPayload } from './numeric-facet-actions.js'; export type { ToggleExcludeNumericFacetValuePayload, ToggleSelectNumericFacetValuePayload, UpdateNumericFacetValuesPayload, }; /** * The numeric facet action creators. * * @group Actions * @category NumericFacet */ export interface NumericFacetActionCreators { /** * Toggles the selection state of a given numeric facet value. * * @param payload - The action creator payload. * @returns A dispatchable action. */ toggleSelectNumericFacetValue(payload: ToggleSelectNumericFacetValuePayload): PayloadAction; /** * Toggles the exclusion state of a given numeric facet value. * * @param payload - The action creator payload. * @returns A dispatchable action. */ toggleExcludeNumericFacetValue(payload: ToggleExcludeNumericFacetValuePayload): PayloadAction; /** * Updates all values in a given numeric facet. * * @param payload - The action creator payload. * @returns A dispatchable action. */ updateNumericFacetValues(payload: UpdateNumericFacetValuesPayload): PayloadAction; } /** * Loads the commerce facet set reducer and returns the available numeric facet action creators. * * @param engine - The commerce engine. * @returns An object holding the numeric facet action creators. * * @group Actions * @category NumericFacet */ export declare function loadNumericFacetActions(engine: CommerceEngine): NumericFacetActionCreators;