import type { QuerySuggestRequest } from '../../api/search/query-suggest/query-suggest-request.js'; import type { QuerySuggestSuccessResponse } from '../../api/search/query-suggest/query-suggest-response.js'; import type { NavigatorContext } from '../../app/navigator-context-provider.js'; import type { ConfigurationSection, ContextSection, PipelineSection, QuerySetSection, QuerySuggestionSection, SearchHubSection } from '../../state/state-sections.js'; export type StateNeededByQuerySuggest = ConfigurationSection & QuerySuggestionSection & QuerySetSection & Partial; export interface RegisterQuerySuggestActionCreatorPayload { /** * A unique identifier for the new query suggest entity (for example, `b953ab2e-022b-4de4-903f-68b2c0682942`). Usually, this will be the ID of the search box controller that requests the query suggestions. */ id: string; /** * The number of query suggestions to request from Coveo ML (for example, `3`). * * @defaultValue `5`. */ count?: number; } export declare const registerQuerySuggest: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: RegisterQuerySuggestActionCreatorPayload], RegisterQuerySuggestActionCreatorPayload, "querySuggest/register", never, never>; export declare const unregisterQuerySuggest: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: { id: string; }], { id: string; }, "querySuggest/unregister", never, never>; export interface SelectQuerySuggestionActionCreatorPayload { /** * The unique identifier of the target query suggest entity (for example, `b953ab2e-022b-4de4-903f-68b2c0682942`). Usually, this will be the ID of the search box controller that requests the query suggestions. */ id: string; /** * The selected query suggestion (for example, `coveo`). */ expression: string; } export declare const selectQuerySuggestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SelectQuerySuggestionActionCreatorPayload], SelectQuerySuggestionActionCreatorPayload, "querySuggest/selectSuggestion", never, never>; export interface ClearQuerySuggestActionCreatorPayload { /** * The unique identifier of the target query suggest entity (for example, `b953ab2e-022b-4de4-903f-68b2c0682942`). Usually, this will be the ID of the search box controller that requests the query suggestions. */ id: string; } export declare const clearQuerySuggest: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: ClearQuerySuggestActionCreatorPayload], ClearQuerySuggestActionCreatorPayload, "querySuggest/clear", never, never>; export interface FetchQuerySuggestionsActionCreatorPayload { /** * The unique identifier of the target query suggest entity (for example, `b953ab2e-022b-4de4-903f-68b2c0682942`). Usually, this will be the ID of the search box controller that requests the query suggestions. */ id: string; } export interface FetchQuerySuggestionsThunkReturn extends FetchQuerySuggestionsActionCreatorPayload, QuerySuggestSuccessResponse { /** * The query for which query suggestions were retrieved. */ q: string | undefined; } export declare const fetchQuerySuggestions: import("@reduxjs/toolkit").AsyncThunk; dispatch?: import("redux-thunk").ThunkDispatch | undefined; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const buildQuerySuggestRequest: (id: string, s: StateNeededByQuerySuggest, navigatorContext: NavigatorContext) => Promise;