--- /dev/null
+export interface URIComponents {\r
+ scheme?: string;\r
+ userinfo?: string;\r
+ host?: string;\r
+ port?: number | string;\r
+ path?: string;\r
+ query?: string;\r
+ fragment?: string;\r
+ reference?: string;\r
+ error?: string;\r
+}\r
+export interface URIOptions {\r
+ scheme?: string;\r
+ reference?: string;\r
+ tolerant?: boolean;\r
+ absolutePath?: boolean;\r
+ iri?: boolean;\r
+ unicodeSupport?: boolean;\r
+ domainHost?: boolean;\r
+}\r
+export interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {\r
+ scheme: string;\r
+ parse(components: ParentComponents, options: Options): Components;\r
+ serialize(components: Components, options: Options): ParentComponents;\r
+ unicodeSupport?: boolean;\r
+ domainHost?: boolean;\r
+ absolutePath?: boolean;\r
+}\r
+export interface URIRegExps {\r
+ NOT_SCHEME: RegExp;\r
+ NOT_USERINFO: RegExp;\r
+ NOT_HOST: RegExp;\r
+ NOT_PATH: RegExp;\r
+ NOT_PATH_NOSCHEME: RegExp;\r
+ NOT_QUERY: RegExp;\r
+ NOT_FRAGMENT: RegExp;\r
+ ESCAPE: RegExp;\r
+ UNRESERVED: RegExp;\r
+ OTHER_CHARS: RegExp;\r
+ PCT_ENCODED: RegExp;\r
+ IPV4ADDRESS: RegExp;\r
+ IPV6ADDRESS: RegExp;\r
+}\r
+export declare const SCHEMES: {\r
+ [scheme: string]: URISchemeHandler;\r
+};\r
+export declare function pctEncChar(chr: string): string;\r
+export declare function pctDecChars(str: string): string;\r
+export declare function parse(uriString: string, options?: URIOptions): URIComponents;\r
+export declare function removeDotSegments(input: string): string;\r
+export declare function serialize(components: URIComponents, options?: URIOptions): string;\r
+export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents;\r
+export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string;\r
+export declare function normalize(uri: string, options?: URIOptions): string;\r
+export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents;\r
+export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean;\r
+export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean;\r
+export declare function escapeComponent(str: string, options?: URIOptions): string;\r
+export declare function unescapeComponent(str: string, options?: URIOptions): string;\r