export function getProductState(state: Object): Object; /** * Selects all products from the store. * @deprecated Also exists within @shopgate/engage/product/selectors/product * @param {Object} state The current application state. * @return {Object} The collection of products. */ export const getProducts: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Selects the product shipping state. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The product shipping state. */ export const getProductShippingState: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Selects the product description state. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The product description state. */ export const getProductDescriptionState: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Selects the product properties state. * @deprecated Also exists within @shopgate/engage/product/selectors/product * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The product properties state. */ export const getProductPropertiesState: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Selects the product images state. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The product images state. */ export const getProductImagesState: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Selects the product variants state. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The product variants state. */ export const getProductVariantsState: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves a product by id from state. Different to getProduct() which returns the product * entity data if available, this selector returns the pure state entry for a given productId. * So the expires and the isFetching property is processable. * @deprecated Also exists within @shopgate/engage/product/selectors/product * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} The dedicated product. */ export const getProductById: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * @deprecated Also exists within @shopgate/engage/product/selectors/product */ export const getProductDataById: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export function getProductId(state: Object, props?: Object): string | null; export function getVariantProductId(state: Object, props: Object): string | null; export function isVariantSelected(state: Object, props: Object): boolean; /** * Retrieves the product data for the passed productId from the store. * @deprecated Also exists within @shopgate/engage/product/selectors/product * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The current product. */ export const getProduct: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product name. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getProductName: ((state: any, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product long name. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getProductLongName: ((state: any, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product rating. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductRating: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product manufacturer. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getProductManufacturer: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product stock information. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductStock: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product availability. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductAvailability: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product flags. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductFlags: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product price object. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string} */ export const getProductPriceData: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product currency. * @param {Object} state The current application state. * @param {Object} props The component props. * @todo Move to the price selectors * @return {string|null} */ export const getProductCurrency: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product discount. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getProductDiscount: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the unit price from a product. * @param {Object} state The current application state. * @param {Object} props The component props. * @todo Move to the price selectors * @return {number|null} */ export const getProductUnitPrice: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Determines if a product has variants. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {boolean} */ export const hasProductVariants: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Determines if a product has variety (variants, options). * This product can not be added to a cart. Selecting of variety should be done on PDP * @param {Object} state The current application state. * @param {Object} props The component props. * @return {boolean} */ export const hasProductVariety: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Determines if a product is a base product. * @param {Object} state The current application state. * @param {Object} props The component props. * @todo Check if returning null is correct. * @return {boolean|null} */ export const isBaseProduct: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Determines a baseProductId for the products which are referenced within the props. * When a variantId is passed, the selector will return the id of the related base product. * @deprecated Also exists within @shopgate/engage/product/selectors/product * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getBaseProductId: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the base product data for the passed productId from the store. * @deprecated Also exists within @shopgate/engage/product/selectors/product * @param {Object} state The current application state. * @returns {Object|null} The current product. */ export const getBaseProduct: ((state: any) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Determines if a base product has variants. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {boolean} */ export const hasBaseProductVariants: ((state: any) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the metadata for the given product. * @param {Object} state The current application state. * @return {Object|null} */ export const getProductMetadata: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the metadata for the given product. * @param {Object} state The current application state. * @return {Object|null} */ export const getBaseProductMetadata: ((state: any) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the shipping data for the given product. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductShipping: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const getProductPropertiesUnfiltered: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the properties for the given product. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductProperties: ((state: Object, props?: Object | undefined) => any[] | null) & import("reselect").OutputSelectorFields<(...args: any) => any[] | null, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the description for the given product. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getProductDescription: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the images for the given product. If the props contain a variantId, and the related * product does not have images, the selector tries to pick images from its base product. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Array|null} */ export const getProductImages: ((state: any, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const getFeaturedImage: ((state: any, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product variant data. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getProductVariants: ((state: any) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves a product for the selected variant id from the store. * @param {Object} state The current application state. * @param {Object} props The component props. * @returns {Object|null} The selected variant or null if none is selected */ export const getSelectedVariant: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Determines if a product is orderable. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {boolean} */ export const isProductOrderable: ((state: Object, props?: Object | undefined) => boolean) & import("reselect").OutputSelectorFields<(...args: any) => boolean, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the product id of a variant product. When no variantId is passed within * the props, the selector will return NULL. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {string|null} */ export const getVariantId: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves an availability object for a passed set of variant characteristics. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object|null} */ export const getVariantAvailabilityByCharacteristics: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Creates a selector that determines fulfillment params for product requests */ export const getFulfillmentParams: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the generated result hash for a category id or search phrase. * @param {Object} state The current application state. * @param {Object} props The component props. * @returns {string|null} The result hash. */ export const getResultHash: ((state: any, ...params: any[]) => string | null) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => string | null, { clearCache: () => void; }> & { clearCache: () => void; }; /** * Retrieves the result by hash. * @param {Object} state The application state. * @param {Object} props The component props. * @returns {Object} The result. */ export const getResultByHash: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: Object, args_1: string | null) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export function getPopulatedProductsResult(state: Object, props: Object, hash: string, result: Object): Object; /** * Retrieves the populated product result. * @param {Object} state The application state. * @param {Object} props The component props. * @returns {Object} The product result. */ export const getProductsResult: ((state: any, ...params: any[]) => Object) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => Object, { clearCache: () => void; }> & { clearCache: () => void; }; export function makeGetProductResultByCustomHash(hash: string): Function; /** * Selector mappings for PWA < 6.0 * @deprecated */ export const getCurrentProduct: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export function getCurrentProductId(state: Object, props?: Object): string | null; export const getCurrentBaseProductId: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const getCurrentBaseProduct: ((state: any) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const getCurrentProductStock: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const getProductStockInfo: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const getProductBasePrice: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, { clearCache: () => void; }> & { clearCache: () => void; }; export const isOrderable: ((state: Object, props?: Object | undefined) => boolean) & import("reselect").OutputSelectorFields<(...args: any) => boolean, { clearCache: () => void; }> & { clearCache: () => void; }; //# sourceMappingURL=product.d.ts.map