import { type CategoryEntity } from '../entities/index.js'; import type { SizeScale, SizeScalesQuery } from '@farfetch/blackout-client'; import type { StoreState } from '../types/index.js'; /** * Returns a specific scale by its id. * * @param state - Application state. * @param id - Scale id. * * @returns Scale normalized. */ export declare const getSizeScale: (state: StoreState, id: SizeScale['sizeScaleId']) => SizeScale | undefined; /** * Returns all size scales fetched. * * @param state - Application state. * * @returns List of scales by id. */ export declare const getSizeScales: (state: StoreState) => Record | undefined; /** * Returns a list of size scales for the provided category id. * * @param state - Application state. * @param categoryId - Category id. * * @returns Size scales for the provided category id. */ export declare const getSizeScalesByCategory: (state: StoreState, categoryId: CategoryEntity['id']) => SizeScale[]; /** * Returns the loading state of size scales. * * @param state - Application state. * * @returns Size scales loading state. */ export declare const areSizeScalesLoading: (state: StoreState) => boolean; /** * Returns the loading state of the size scale. * * @param state - Application state. * @param scaleIdentifier - Size scale id or the query object used to fetch the size scale. * * @returns The scale loading state. */ export declare const isSizeScaleLoading: (state: StoreState, scaleIdentifier: SizeScale['sizeScaleId'] | SizeScalesQuery) => boolean | undefined; /** * Returns the error state of size scales. * * @param state - Application state. * * @returns Size scales error state. */ export declare const getSizeScalesError: (state: StoreState) => import("@farfetch/blackout-client").BlackoutError | null; /** * Returns the error of the size scale. * * @param state - Application state. * @param scaleIdentifier - Size scale id or the query object used to fetch the size scale. * * @returns The scale error. */ export declare const getSizeScaleError: (state: StoreState, scaleIdentifier: SizeScale['sizeScaleId'] | SizeScalesQuery) => import("@farfetch/blackout-client").BlackoutError | undefined; /** * Checks if a specific size scale is fetched. * * @param state - Application state. * @param scaleId - Size scale id. * * @returns If the scale was requested or not. */ export declare const isSizeScaleFetched: (state: StoreState, scaleId: SizeScale['sizeScaleId']) => boolean;