/** * Interpolates a URL template with provided state. */ declare function interpolateUrl>(urlTemplate: string, state?: S, options?: InterpolateUrlOptions): InterpolateUrlResult; interface InterpolateUrlOptions { /** * If true, any state that is not used to interpolate the URL will be added to the query string. */ addUnusedStateToQueryString?: boolean; /** * If true, any query string placeholders that are not used to interpolate the URL will be discarded. */ discardOrphanedQueryStringPlaceholders?: boolean; /** * If true, any query string values will be URI encoded. */ preEncodeQueryStringValuesForKeys?: string[]; } /** * Result of interpolating a URL template with provided state. */ interface InterpolateUrlResult> { /** * State that was not used to interpolate the URL. */ unmatchedParamState: Partial; /** * The interpolated URL. */ url: string; } export { type InterpolateUrlOptions, type InterpolateUrlResult, interpolateUrl };