import type { PromotionEvaluationId } from '@farfetch/blackout-client'; import type { StoreState } from '../types/index.js'; /** * Retrieves a list of all the promotion evaluations items available. * * @example * ``` * import { getPromotionEvaluationItems } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * promotionEvaluationsItems: getPromotionEvaluationItems(state) * }); * ``` * * @param state - Application state. * * @returns - List of promotion evaluations items. */ export declare const getPromotionEvaluationItems: (state: StoreState) => import("@farfetch/blackout-client").PromotionEvaluationItem[] | null; /** * Retrieves a promotion evaluation item given an id. * * @example * ``` * import { getPromotionEvaluationItemById } from '@farfetch/blackout-redux'; * * const mapStateToProps = (state, { id } ) => ({ * promotionEvaluationsItem: getPromotionEvaluationItemById(state, id) * }); * ``` * * @param state - Application state. * @param id - Promotion evaluation item identifier to retrieve. * * @returns - Promotion evaluations item. */ export declare const getPromotionEvaluationItemById: (state: StoreState, id: PromotionEvaluationId) => import("@farfetch/blackout-client").PromotionEvaluationItem | undefined; /** * Retrieves the promotion evaluation id stored. * * @example * ``` * import { getPromotionEvaluationId } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * promotionEvaluationId: getPromotionEvaluationId(state) * }); * ``` * * @param state - Application state. * * @returns - Promotion evaluation id. */ export declare const getPromotionEvaluationId: (state: StoreState) => string | null; /** * Retrieves the error status of promotion evaluations items. * * @example * ``` * import { getPromotionEvaluationItemsError } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * error: getPromotionEvaluationItemsError(state) * }); * ``` * * @param state - Application state. * * @returns Error information (`null` if there are no errors). */ export declare const getPromotionEvaluationItemsError: (state: StoreState) => import("@farfetch/blackout-client").BlackoutError | null; /** * Retrieves the loading state of promotion evaluations items. * * @example * ``` * import { arePromotionEvaluationItemsLoading } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * isLoading: arePromotionEvaluationItemsLoading(state) * }); * ``` * * @param state - Application state. * * @returns - Loading status of promotion evaluations items. */ export declare const arePromotionEvaluationItemsLoading: (state: StoreState) => boolean;