/** * Construct a query string with all query parameters received in a form of an * object. This is particularly useful for the listing filters where the different * values of the same facet are separated by `|`. * * @example * ``` * const queryString = buildQueryStringFromObject({sort: 'price', sortdirection: 'desc', pageIndex: 2}); * Result of queryString === '?pageindex=2&sort=price&sortdirection=desc'; * ``` * * @param obj - All query parameters applied to an URL. * @param useQuestionMark - If the query string should be prefixed by a question mark. * * @returns Query string with all parameters received. */ declare const buildQueryStringFromObject: (obj: Record, useQuestionMark?: boolean) => string; export default buildQueryStringFromObject;