import type { GenerateProductListingHash } from './types/index.js'; /** * Build a hash with slug and query to identify products lists (listings or sets). * * @example * ``` * const query = { sort: 'price' }; * const productListHash = generateProductListingHash(slug, query); * const productListHash = generateProductListingHash(slug, query, { * isSet: true * }); * * Result of productListHash === 'listing/woman/clothing?sort=price'; * * ``` * In case of custom listig page * * @example * ``` * const productListHash = generateProductListingHash(slug, query, { * isCustomListingPage: true * }); * * Result of productListHash === 'listing/customlistingpage'; * ``` * * @param slug - Slug from pathname. * @param query - Object or string with query parameters. * @param hashOptions - Options to generate the hash. * * @returns Hash built to identify a product list. */ declare const generateProductListingHash: GenerateProductListingHash; export default generateProductListingHash;