UNPKG

2.92 kBTypeScriptView Raw
1import { Cluster, ConnectOptions } from './cluster';
2import { NodeCallback } from './utilities';
3/**
4 * Acts as the entrypoint into the rest of the library. Connecting to the cluster
5 * and exposing the various services and features.
6 *
7 * @param connStr The connection string to use to connect to the cluster.
8 * @param options Optional parameters for this operation.
9 * @param callback A node-style callback to be invoked after execution.
10 * @category Core
11 */
12export declare function connect(connStr: string, options?: ConnectOptions, callback?: NodeCallback<Cluster>): Promise<Cluster>;
13/**
14 * Exposes the underlying couchbase++ library version that is being used by the
15 * SDK to perform I/O with the cluster.
16 *
17 * @deprecated Use {@link cbppVersion} instead.
18 */
19export declare const lcbVersion: string;
20/**
21 * Exposes the underlying couchbase++ library version that is being used by the
22 * SDK to perform I/O with the cluster.
23 */
24export declare const cbppVersion: string;
25export declare const cbppMetadata: string;
26/**
27 * Volatile: This API is subject to change at any time.
28 *
29 * Exposes the underlying couchbase++ library protocol logger. This method is for
30 * logging/debugging purposes and must be used with caution as network details will
31 * be logged to the provided file.
32 *
33 * @param filename Name of file protocol logger will save logging details.
34 */
35export declare function enableProtocolLoggerToSaveNetworkTrafficToFile(filename: string): void;
36/**
37 * Volatile: This API is subject to change at any time.
38 *
39 * Shutdowns the underlying couchbase++ logger.
40 *
41 */
42export declare function shutdownLogger(): void;
43export * from './analyticsindexmanager';
44export * from './analyticstypes';
45export * from './authenticators';
46export * from './binarycollection';
47export * from './bucket';
48export * from './bucketmanager';
49export * from './cluster';
50export * from './collection';
51export * from './collectionmanager';
52export * from './crudoptypes';
53export * from './datastructures';
54export * from './diagnosticstypes';
55export * from './errorcontexts';
56export * from './errors';
57export * from './eventingfunctionmanager';
58export * from './generaltypes';
59export * from './mutationstate';
60export * from './queryindexmanager';
61export * from './querytypes';
62export * from './rangeScan';
63export * from './scope';
64export * from './scopeeventingfunctionmanager';
65export * from './scopesearchindexmanager';
66export * from './sdspecs';
67export * from './searchfacet';
68export * from './searchindexmanager';
69export * from './searchquery';
70export * from './searchsort';
71export * from './searchtypes';
72export * from './streamablepromises';
73export * from './transactions';
74export * from './transcoders';
75export * from './usermanager';
76export * from './vectorsearch';
77export * from './viewexecutor';
78export * from './viewindexmanager';
79export * from './viewtypes';
80export { Cas, CasInput, NodeCallback } from './utilities';