import type { PayloadAction } from '@reduxjs/toolkit'; import type { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js'; import { type UpdateQueryPayload } from './query-actions.js'; export type { UpdateQueryPayload }; /** * The query action creators. * * @group Actions * @category Query */ export interface QueryActionCreators { /** * Updates the basic query expression. * * @param payload - The action creator payload. * @returns A dispatchable action. */ updateQuery(payload: UpdateQueryPayload): PayloadAction; } /** * Loads the commerce query reducer and returns possible query action creators. * * @param engine - The headless commerce engine. * @returns An object holding the query action creators. * * @group Actions * @category Query */ export declare function loadQueryActions(engine: CommerceEngine): QueryActionCreators;