import type { SearchResponseSuccess } from '../../api/search/search/search-response.js'; import type { InstantResultSection } from '../../state/state-sections.js'; import { type LegacySearchAction } from '../analytics/analytics-utils.js'; import { type FetchInstantResultsActionCreatorPayload, type FetchInstantResultsThunkReturn } from '../instant-results/instant-results-actions.js'; import { type UpdateQueryActionCreatorPayload } from '../query/query-actions.js'; import { type StateNeededByExecuteSearch } from './search-actions-thunk-processor.js'; export interface SearchAction { actionCause: string; } export interface ExecuteSearchThunkReturn { /** The successful search response. */ response: SearchResponseSuccess; /** The number of milliseconds it took to receive the response. */ duration: number; /** The query that was executed. */ queryExecuted: string; /** Whether the query was automatically corrected. */ automaticallyCorrected: boolean; /** The original query that was performed when an automatic correction is executed.*/ originalQuery: string; } export interface PrepareForSearchWithQueryOptions { /** * Whether to clear all active query filters when the end user submits a new query from the search box. * Setting this option to "false" is not recommended and can lead to an increasing number of queries returning no results. */ clearFilters: boolean; } export declare const prepareForSearchWithQuery: import("@reduxjs/toolkit").AsyncThunk | undefined; rejectValue?: unknown; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export interface TransitiveSearchAction { legacy: LegacySearchAction; next?: SearchAction; } export declare const updateSearchAction: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload; export declare const executeSearch: import("@reduxjs/toolkit").AsyncThunk; dispatch?: import("redux-thunk").ThunkDispatch | undefined; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const fetchPage: import("@reduxjs/toolkit").AsyncThunk; dispatch?: import("redux-thunk").ThunkDispatch | undefined; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const fetchMoreResults: import("@reduxjs/toolkit").AsyncThunk; dispatch?: import("redux-thunk").ThunkDispatch | undefined; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const fetchFacetValues: import("@reduxjs/toolkit").AsyncThunk; dispatch?: import("redux-thunk").ThunkDispatch | undefined; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const fetchInstantResults: import("@reduxjs/toolkit").AsyncThunk & InstantResultSection; extra: import("../../app/thunk-extra-arguments.js").ClientThunkExtraArguments; dispatch?: import("redux-thunk").ThunkDispatch | undefined; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>;