import { URLProps } from './URL';
export declare class YURL {
    private readonly parts;
    constructor(str: YURL | string, base?: YURL | string);
    get(key: 'path'): string;
    get(key: 'query' | 'searchParams'): Record<string, string | string[]>;
    get(key: URLProps): string;
    clone(): YURL;
    toString(): string;
    toJSON(): string;
    format(): string;
    static parse(str: string, base?: string): YURL;
    host(host: string): this;
    hostname(hostname?: string | null): this;
    port(port?: string | number | null): this;
    pathname(to?: string | null): this;
    path(path: string): this;
    search(search?: string | null): this;
    hash(hash?: string | null): this;
    auth(auth?: string | null): this;
    username(username?: string | null): this;
    password(password?: string | null): this;
    searchParam(key: string, value?: '' | string | string[] | null): void;
    searchParams(): YURL;
    searchParams(paramsOrKey: Record<string, string | string[]>): YURL;
    searchParams(paramsOrKey: string | Record<string, string | string[]> | undefined, value?: string | string[] | null | undefined): YURL;
    query(): YURL;
    query(paramsOrKey: Record<string, string | string[]>): YURL;
    query(paramsOrKey: string, value?: string | string[] | null): YURL;
    protocol(protocol?: string | null): this;
}
//# sourceMappingURL=YURL.d.ts.map