/** * Build a URL from a route ID + params, **localized** to the current request locale * (a `/` prefix is added for a non-default storefront locale; never for admin * routes or the default locale โ€” spec ยง6.10). Isomorphic: safe during SSR and on the * client. * * Use this for **route-based** links (cart, checkout, account, a route you have an id * for). For an **already-built URL string** โ€” e.g. a `url_rewrite` entity path inside a * GraphQL resolver โ€” use `localizeUrl` instead (`buildUrl` needs a route id, and its * locale source isn't populated during GraphQL resolution). Both delegate to the same * `applyLocalePrefix` primitive. * * @param {string} routeId * @param {object} params Key-Pair value of route params * @param {object} query Key-Pair value of query parameters * * @return {string} The localized Url */ export declare const buildUrl: (routeId: string, params?: Record, query?: Record) => string;