import type { Brand, Brands, GetBrandsQuery } from '@farfetch/blackout-client'; import type { StoreState } from '../types/index.js'; /** * Returns error for one brand - fetchBrand request. * * @param state - Application state. * @param id - Brand identifier. * * @returns Brand error. */ export declare const getBrandError: (state: StoreState, id: Brand['id']) => import("@farfetch/blackout-client").BlackoutError | undefined; /** * Returns the error for brands - fetchBrands request. * * @param state - Application state. * @param query - Get brands request query. * * @returns Brands error. */ export declare const getBrandsError: (state: StoreState, query?: GetBrandsQuery) => import("@farfetch/blackout-client").BlackoutError | undefined; /** * Returns the loading status for one brand - fetchBrand request. * * @param state - Application state. * @param id - Brand identifier. * * @returns Loading status corresponding to a fetchBrand request. */ export declare const isBrandLoading: (state: StoreState, id: Brand['id']) => boolean | undefined; /** * Returns the loading status for brands - fetchBrands request. * * @param state - Application state. * @param query - Get brands request query. * * @returns Loading status corresponding to a fetchBrands request. */ export declare const areBrandsLoading: (state: StoreState, query?: GetBrandsQuery) => boolean | undefined; /** * Returns all brands from state. * * @param state - Application state. * * @returns Object with key values pairs representing brandId and brand properties. */ export declare const getBrands: (state: StoreState) => Record | undefined; /** * Returns a specific brand by its id. * * @param state - Application state. * @param brandId - Brand id. * * @returns Brand normalized. */ export declare const getBrand: (state: StoreState, brandId: Brand['id']) => Brand | undefined; /** * Returns the brands result descendant from the `fetchBrands` request. * * @param state - Application state. * @param query - Get brands request query. * * @returns Brands result with pagination. */ export declare const getBrandsResult: (state: StoreState, query?: GetBrandsQuery) => Brands | undefined; /** * Retrieves if a brands result is cached by its hash. * * @param state - Application state. * @param query - Get brands request query. * * @returns Whether the brands result is cached or not. */ export declare const isBrandsResultCached: (state: StoreState, query?: GetBrandsQuery) => boolean; /** * Retrieves if a brand is fetched. * * @param state - Application state. * @param id - Brand identifier. * * @returns Whether the brand is fetched or not. */ export declare const isBrandFetched: (state: StoreState, id: Brand['id']) => boolean; /** * Retrieves if the brands result are fetched by its hash. * * @param state - Application state. * @param query - Get brands request query. * * @returns Whether the brands result is cached or not. */ export declare const areBrandsFetched: (state: StoreState, query?: GetBrandsQuery) => boolean;