import { URI } from "../../../base/common/uri.js"; /** * Check whether a domain like https://www.microsoft.com matches * the list of trusted domains. * * - Schemes must match * - There's no subdomain matching. For example https://microsoft.com doesn't match https://www.microsoft.com * - Star matches all subdomains. For example https://*.microsoft.com matches https://www.microsoft.com and https://foo.bar.microsoft.com */ export declare function isURLDomainTrusted(url: URI, trustedDomains: string[]): boolean; /** * Returns whether a URL has an authority that can be safely used for trust decisions. */ export declare function isURLSafeForTrust(url: URI): boolean; /** * Returns whether a URL authority contains user information. */ export declare function hasURLUserInformation(url: URI): boolean; /** * Normalizes effective HTTP(S) paths and case-insensitive paths, such as GitHub paths. */ export declare function normalizeURL(url: string | URI): string; /** * Normalizes a URL for trust comparisons without decoding reserved path escapes. */ export declare function normalizeURLForTrust(url: URI): URI; /** Serializes a normalized pattern without losing literal escapes when the matcher parses it again. */ export declare function serializeURLPattern(url: URI): string; /** Normalizes configured patterns while preserving scheme-less glob applicability. */ export declare function normalizeURLPattern(pattern: string): string; export declare function isLocalhostAuthority(authority: string): boolean; export declare function isAllInterfacesAuthority(authority: string): boolean;