import type { SearchResponseSuccess } from '../../../api/search/search/search-response.js'; import type { InstantResultSection } from '../../../state/state-sections.js'; import type { AnalyticsAsyncThunk, LegacySearchAction } from '../../analytics/analytics-utils.js'; import { type FetchInstantResultsActionCreatorPayload, type FetchInstantResultsThunkReturn } from '../../instant-results/instant-results-actions.js'; import { type StateNeededByExecuteSearch } from './search-actions-thunk-processor.js'; 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; /** The analytics action to log after the query. */ analyticsAction: AnalyticsAsyncThunk; } 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; }>; export declare function legacyFetchInstantResults(payload: FetchInstantResultsActionCreatorPayload, config: any): Promise; export declare function legacyFetchPage(state: StateNeededByExecuteSearch, config: any, searchAction: LegacySearchAction): Promise; export declare function legacyFetchMoreResults(config: any, state: StateNeededByExecuteSearch): Promise; export declare function legacyExecuteSearch(state: StateNeededByExecuteSearch, config: any, searchAction: LegacySearchAction): Promise;