import type { GetSearchDidYouMeanQuery } from '@farfetch/blackout-client'; import type { StoreState } from '../../types/index.js'; /** * Retrieves the error thrown by current search term. * * @example * ``` * import { getSearchDidYouMeanError } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * error: getSearchDidYouMeanError(state, query) * }); * * ``` * * @param state - Application state. * @param query - Get search did you mean query. * * @returns Search did you mean request error. */ export declare const getSearchDidYouMeanError: (state: StoreState, query: GetSearchDidYouMeanQuery) => import("@farfetch/blackout-client").BlackoutError | null | undefined; /** * Retrieves the loading condition from current search term. * * @example * ``` * import { isSearchDidYouMeanLoading } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * isLoading: isSearchDidYouMeanLoading(state, query) * }); * * ``` * * @param state - Application state. * * @returns Whether a search term response is loading or not. */ export declare const isSearchDidYouMeanLoading: (state: StoreState, query: GetSearchDidYouMeanQuery) => boolean | undefined; /** * Retrieves the facets of a specific search for did you mean. * * @example * ``` * import { getSearchDidYouMeanResult } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * result: getSearchDidYouMeanResult(state, query) * }); * * ``` * * @param state - Application state. * @param query - Get search did you mean query. * * @returns Facets of a specific search. */ export declare const getSearchDidYouMeanResult: (state: StoreState, query: GetSearchDidYouMeanQuery) => import("@farfetch/blackout-client").SearchDidYouMeanSuggestion[] | null | undefined; /** * Retrieves if the search did you mean has been fetched. * * Will return true if a fetch request * has been made that returned either successfully or failed * and false otherwise. * * @example * ``` * import { isSearchDidYouMeanFetched } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * isFetched: isSearchDidYouMeanFetched(state) * }); * ``` * @param state - Application state. * @param query - Get search did you mean query. * * @returns isFetched status of the search did you mean. */ export declare const isSearchDidYouMeanFetched: (state: StoreState, query: GetSearchDidYouMeanQuery) => boolean;