/*! Copyright (c) 2026, XAPPmedia */ /** * Fills `${key}` placeholders in a resource path from its request map. * * Replaces `lodash.template`, which compiled the path into a function. Only * the `${key}` form is used by any resource in this repo, so this deliberately * does not support lodash's `<% %>` evaluate form — and it never evaluates the * placeholder as code. `lodash.template` compiled arbitrary JavaScript, which * is why it has a CVE history; a path is data, not a program. * * Matches lodash by **throwing** on a placeholder with no matching key, so a * misconfigured resource fails loudly instead of requesting a malformed URL. * * @export * @param {string} path * @param {{ [key: string]: unknown }} [data] * @returns {string} */ export declare function compilePath(path: string, data?: { [key: string]: unknown; }): string; /** * Serializes a resource's query object. * * Replaces `query-string.stringify`. `URLSearchParams` is not a drop-in here — * these differences were measured against query-string@7 and are preserved: * * - keys are sorted alphabetically (`URLSearchParams` keeps insertion order) * - `undefined` values are omitted entirely (`URLSearchParams` would emit the * string "undefined") * - spaces encode as `%20`, not `+` * * @export * @param {{ [key: string]: string }} [query] * @returns {string} */ export declare function stringifyQuery(query?: { [key: string]: string; }): string;