cnf
2025-05-15 5f0b94e9c252e507b4c09badf923796151be0d03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
type FastUri = typeof fastUri
 
declare namespace fastUri {
  export interface URIComponent {
    scheme?: string;
    userinfo?: string;
    host?: string;
    port?: number | string;
    path?: string;
    query?: string;
    fragment?: string;
    reference?: string;
    error?: string;
  }
  export interface Options {
    scheme?: string;
    reference?: string;
    unicodeSupport?: boolean;
    domainHost?: boolean;
    absolutePath?: boolean;
    tolerant?: boolean;
  }
 
  /**
   * @deprecated Use Options instead
   */
  export type options = Options
  /**
   * @deprecated Use URIComponent instead
   */
  export type URIComponents = URIComponent
 
  export function normalize (uri: string, opts?: Options): string
  export function normalize (uri: URIComponent, opts?: Options): URIComponent
  export function normalize (uri: any, opts?: Options): any
 
  export function resolve (baseURI: string, relativeURI: string, options?: Options): string
 
  export function resolveComponent (base: URIComponent, relative: URIComponent, options?: Options, skipNormalization?: boolean): URIComponent
 
  export function parse (uri: string, opts?: Options): URIComponent
 
  export function serialize (component: URIComponent, opts?: Options): string
 
  export function equal (uriA: string, uriB: string): boolean
 
  export function resolve (base: string, path: string): string
 
  export const fastUri: FastUri
  export { fastUri as default }
}
 
export = fastUri