import type { PayloadAction } from '@reduxjs/toolkit'; import type { SearchEngine } from '../../app/search-engine/search-engine.js'; import { type UpdateQueryActionCreatorPayload } from './query-actions.js'; export type { UpdateQueryActionCreatorPayload }; /** * 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: UpdateQueryActionCreatorPayload): PayloadAction; } /** * Loads the `query` reducer and returns possible action creators. * * @param engine - The headless engine. * @returns An object holding the action creators. * * @group Actions * @category Query */ export declare function loadQueryActions(engine: SearchEngine): QueryActionCreators;