import { ParsedUrl } from '../models/parsed-url'; /** * This function creates a new anchor element and uses location * properties (inherent) to get the desired URL data. Some String * operations are used (to normalize results across browsers). * * @remarks * References JS implementation from * * @example * ```ts * const myURL = _parseUrl('http://abc.com:8080/dir/index.html?id=255&m=hello#top'); * myURL.source; // = 'http://abc.com:8080/dir/index.html?id=255&m=hello#top' * myURL.protocol; // = 'http' * myURL.host; // = 'abc.com' * myURL.port; // = '8080' * myURL.path; // = '/dir/index.html' * myURL.segments; // = Array = ['dir', 'index.html'] * myURL.query; // = '?id=255&m=hello' * myURL.params; // = Object = { id: 255, m: hello } * myURL.hash; // = 'top' * ``` * * @param url the url to parse * @returns the parsed url */ export declare function _parseUrl(url: string): ParsedUrl;