/** * The scheme a couchbase2 connection string carries. * * @internal */ export declare const COUCHBASE2_SCHEME = "couchbase2"; /** * The gateway's port when the connection string gives none. * * @internal */ export declare const DEFAULT_PORT = 18098; /** * How the gateway's certificate is checked: `peer` verifies it, `none` * encrypts without verifying. * * @internal */ export type TlsVerifyMode = 'peer' | 'none'; /** * What a couchbase2 connection string says, once checked. * * @internal */ export interface Couchbase2ConnStr { /** * The gateway's host as written, an IPv6 literal in brackets. */ host: string; /** * The gateway's port, {@link DEFAULT_PORT} when none was written. */ port: number; /** * The address as gRPC takes it, `host:port`. */ target: string; /** * The `tls_verify` option, `peer` by default. */ tlsVerify: TlsVerifyMode; /** * The `trust_certificate` option, or the legacy `trust_store_path`. */ trustCertificate?: string; /** * The `disable_mozilla_ca_certificates` option, false by default. */ disableMozillaCaCertificates: boolean; /** * The `log_redaction` option, false by default. */ logRedaction: boolean; /** * Options a couchbase2 connection does not use, by name. */ ignoredOptions: string[]; /** * Values that could not be read, each leaving its option at the default. */ warnings: string[]; } /** * Reads a couchbase2 connection string. The gateway balances the load over * the cluster itself, so a second host is refused rather than dropped, as * are a bucket and credentials, which the classic form allowed. * * @internal */ export declare function parseConnStr(connStr: string): Couchbase2ConnStr;