import { TypeDBDriver as TypeDBDriver } from "./api/connection/TypeDBDriver"; import { TypeDBCredential } from "./api/connection/TypeDBCredential"; export declare namespace TypeDB { const DEFAULT_ADDRESS = "127.0.0.1:1729"; /** * Creates a connection to TypeDB. * @param address - Address of the TypeDB server. * * ### Examples * * ```ts * const driver = TypeDB.coreDriver("127.0.0.1:11729"); * ``` */ function coreDriver(address?: string): Promise; /** * Creates a connection to TypeDB Cloud, authenticating with the provided credentials. * @param addresses - List of addresses of the individual TypeDB Cloud servers. * As long one specified address is provided, the driver will discover the other addresses from that server. * Alternatively, a translation map from addresses to be used by the driver for connection * to addresses received from the TypeDB server(s) may be provided. * @param credential - The credentials to log in, and encryption settings. See {@link TypeDBCredential} * * ### Examples * * ```ts * const driver = TypeDB.cloudDriver(["127.0.0.1:11729"], new TypeDBCredential(username, password)); * ``` */ function cloudDriver(addresses: string | string[] | Record, credential: TypeDBCredential): Promise; }