import { UrlValueParser, IUrlValueParserOptions } from './UrlValueParser.js';
/**
 * A class to parse URL string.
 */
export declare class UrlParser extends UrlValueParser {
    /**
     * @param value The URL value
     */
    constructor(value: string, opts?: IUrlValueParserOptions);
    /**
     * Returns protocol value in format `protocol` + ':'
     *
     * @return The value of the protocol or `undefined` if the value is not set
     */
    get protocol(): string | undefined;
    /**
     * Sets value of the `protocol`
     *
     * @param value Protocol value.
     */
    set protocol(value: string | undefined);
    /**
     * It reads the authority part of the URL value. It doesn't parses it
     * to host, port and credentials parts.
     *
     * @return The value of the host or `undefined` if the value is not set
     */
    get host(): string | undefined;
    /**
     * Sets value of the `host`
     *
     * @param value Host value.
     */
    set host(value: string | undefined);
    /**
     * Returns path part of the URL.
     *
     * @returns The value of the path or `undefined` if the value not set
     */
    get path(): string | undefined;
    /**
     * Sets value of the `path`
     *
     * @param value Path value.
     */
    set path(value: string | undefined);
    /**
     * Returns anchor part of the URL.
     *
     * @returns The value of the anchor or `undefined` if the value not set
     */
    get anchor(): string | undefined;
    /**
     * Sets value of the `anchor`
     *
     * @param value The anchor value.
     */
    set anchor(value: string | undefined);
    /**
     * Returns search part of the URL.
     *
     * @returns the value of the search or `undefined` if the value not set
     */
    get search(): string | undefined;
    /**
     * Sets value of the `search`
     *
     * @param value Search value.
     */
    set search(value: string | undefined);
    /**
     * The URL value. It is the same as calling `toString()`.
     *
     * @return The URL value for current configuration.
     */
    get value(): string;
    /**
     * Sets value of the URL.
     * It parses the url and sets properties.
     *
     * @param value The URL value.
     */
    set value(value: string);
    /**
     * Returns an array of search params.
     *
     * @returns The list of search params. Each item contains an
     * array where the first item is the name of the parameter and the second item is the
     * value.
     */
    get searchParams(): string[][];
    /**
     * Sets the value of `search` and `searchParams`.
     *
     * @param value Search params list.
     */
    set searchParams(value: string[][]);
    /**
     * Returns the URL for current settings.
     *
     * @return The URL value.
     */
    toString(): string;
}
//# sourceMappingURL=UrlParser.d.ts.map