import type { PayloadAction } from '@reduxjs/toolkit'; import type { Result } from '../../api/search/search/result.js'; import type { SearchEngine } from '../../app/search-engine/search-engine.js'; import { type RegisterRecentResultsCreatorPayload } from './recent-results-actions.js'; export type { RegisterRecentResultsCreatorPayload }; /** * The RecentResults action creators * * @group Actions * @category RecentResults */ export interface RecentResultsActionCreators { /** * Initialize the `recentResults` state. * @param payload (RegisterRecentResultsCreatorPayload) The initial state and options. * @returns A dispatchable action. */ registerRecentResults(payload: RegisterRecentResultsCreatorPayload): PayloadAction; /** * Clear the recent results list. * @returns A dispatchable action. */ clearRecentResults(): PayloadAction; /** * Add the recent result to the list. * @param payload (Result) The result to add. * @returns A dispatchable action. */ pushRecentResult(payload: Result): PayloadAction; } /** * Loads the `recentresults` reducer and returns possible action creators. * * @param engine - The headless engine. * @returns An object holding the action creators. * * @group Actions * @category RecentResults */ export declare function loadRecentResultsActions(engine: SearchEngine): RecentResultsActionCreators;