declare type ParsedUrl = {
    source: string;
    protocol: string;
    authority: string;
    userInfo: string;
    user: string;
    password: string;
    host: string;
    port: string;
    relative: string;
    path: string;
    directory: string;
    file: string;
    query: string;
    anchor: string;
    pathNames: Array<string>;
    queryKey: {
        [key: string]: string;
    };
    id: string;
    href: string;
};
/**
 * URL parser.
 *
 * @param uri - url
 * @param path - the request path of the connection
 * @param loc - An object meant to mimic window.location.
 *        Defaults to window.location.
 * @public
 */
export declare function url(uri: string | ParsedUrl, path?: string, loc?: Location): ParsedUrl;
export {};
