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