import type { StoreState } from '../../types/index.js'; /** * Retrieves the error status of categories. * * @example * ``` * import { getCategoriesError } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * error: getCategoriesError(state) * }); * ``` * * @param state - Application state. * * @returns Error information (`null` if there are no errors). */ export declare const getCategoriesError: (state: StoreState) => import("@farfetch/blackout-client").BlackoutError | null; /** * Retrieves the loading state of categories. * * @example * ``` * import { areCategoriesLoading } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * isLoading: areCategoriesLoading(state) * }); * ``` * * @param state - Application state. * * @returns - Loading status of categories. */ export declare const areCategoriesLoading: (state: StoreState) => boolean; /** * Returns the fetched status of categories. * * @example * ``` * import { areCategoriesFetched } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * areCategoriesFetched: areCategoriesFetched(state) * }); * ``` * * @param state - Application state. * * @returns - If categories are fetched or not. */ export declare const areCategoriesFetched: (state: StoreState) => boolean; /** * Retrieves a list of all the categories available. * * @example * ``` * import { getCategories } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * categories: getCategories(state) * }); * ``` * * @param state - Application state. * * @returns - Categories by id. */ export declare const getCategories: (state: StoreState) => Record | undefined;