/** Matches `{name}` globally; capture group `1` contains the name. */ declare const SERVER_VARIABLE_REGEX: RegExp; /** * Substitute `{name}` server variables, converting resolved values to strings. * * @param url Server URL template. * @param variables Values by name: primitives or `{ default: value }` objects. Defaults to `{}`. * @param resolveMissing Optional fallback for unresolved names; returning `undefined` preserves the template. * @returns Substituted URL, with unresolved templates unchanged. */ declare function substituteServerVariables(url: string, variables?: Record, resolveMissing?: (name: string) => unknown): string; declare function stripTrailingSlash(url: string): string; /** * Normalize a server URL **without validation**: * - Default missing schemes to HTTPS. * - Use `https://example.com` for empty URLs and root-relative paths. * - Remove one trailing `/`, preserving variable templates. * * @param url Server URL or template. * @param urlForProtocolCheck Resolved URL for scheme detection; defaults to `url`. * @returns Normalized URL. */ declare function normalizeURL(url: string | undefined, urlForProtocolCheck?: string | undefined): string; export { SERVER_VARIABLE_REGEX, normalizeURL, stripTrailingSlash, substituteServerVariables };