import { URL } from 'whatwg-url'; import { redactConnectionString, ConnectionStringRedactionOptions } from './redact'; export { redactConnectionString, ConnectionStringRedactionOptions }; declare class CaseInsensitiveMap extends Map { delete(name: K): boolean; get(name: K): string | undefined; has(name: K): boolean; set(name: K, value: any): this; _normalizeKey(name: any): K; } declare abstract class URLWithoutHost extends URL { abstract get host(): never; abstract set host(value: never); abstract get hostname(): never; abstract set hostname(value: never); abstract get port(): never; abstract set port(value: never); abstract get href(): string; abstract set href(value: string); } export default class ConnectionString extends URLWithoutHost { _hosts: string[]; constructor(uri: string); get host(): never; set host(_ignored: never); get hostname(): never; set hostname(_ignored: never); get port(): never; set port(_ignored: never); get href(): string; set href(_ignored: string); get isSRV(): boolean; get hosts(): string[]; set hosts(list: string[]); toString(): string; clone(): ConnectionString; redact(options?: ConnectionStringRedactionOptions): ConnectionString; typedSearchParams(): { append(name: keyof T & string, value: any): void; delete(name: keyof T & string): void; get(name: keyof T & string): string | null; getAll(name: keyof T & string): string[]; has(name: keyof T & string): boolean; set(name: keyof T & string, value: any): void; keys(): IterableIterator; values(): IterableIterator; entries(): IterableIterator<[keyof T & string, string]>; _normalizeKey(name: keyof T & string): string; [Symbol.iterator](): IterableIterator<[keyof T & string, string]>; sort(): void; forEach(callback: (this: THIS_ARG, value: string, name: string, searchParams: any) => void, thisArg?: THIS_ARG | undefined): void; readonly [Symbol.toStringTag]: "URLSearchParams"; }; } export declare class CommaAndColonSeparatedRecord> extends CaseInsensitiveMap { constructor(from?: string | null); toString(): string; }