import type { CategoryEntity } from '../../entities/index.js'; import type { StoreState } from '../../types/index.js'; /** * Retrieves the error status of top categories. * * @example * ``` * import { getTopCategoriesError } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * error: getTopCategoriesError(state) * }); * ``` * * @param state - Application state. * * @returns Error information (`null` if there are no errors). */ export declare const getTopCategoriesError: (state: StoreState) => import("@farfetch/blackout-client").BlackoutError | null; /** * Retrieves a list of all the top categories (without a parent category). * * @example * ``` * import { getTopCategories } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * topCategories: getTopCategories(state) * }); * ``` * * @param state - Application state. * * @returns - Top categories list. */ export declare const getTopCategories: (state: StoreState) => CategoryEntity[]; /** * Retrieves the loading state of top categories. * * @example * ``` * import { areTopCategoriesLoading } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * isLoading: areTopCategoriesLoading(state) * }); * ``` * * @param state - Application state. * * @returns - Loading status of categories. */ export declare const areTopCategoriesLoading: (state: StoreState) => boolean; /** * Returns the fetched status of top categories. * * @example * ``` * import { areTopCategoriesFetched } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * areTopCategoriesFetched: areTopCategoriesFetched(state) * }); * ``` * * @param state - Application state. * * @returns - If top categories are fetched or not. */ export declare const areTopCategoriesFetched: (state: StoreState) => boolean;