import ConnectionGQL from './gql.js'; import { InternalConnectionParams } from './http.js'; import { ConsistencyLevel } from '../data/index.js'; import { Batch } from '../grpc/batcher.js'; import { Search } from '../grpc/searcher.js'; import { Tenants } from '../grpc/tenantsManager.js'; import { DbVersionSupport } from '../utils/dbVersion.js'; import { Aggregate } from '../grpc/aggregator.js'; export interface GrpcConnectionParams extends InternalConnectionParams { grpcAddress: string; grpcSecure: boolean; } export default class ConnectionGRPC extends ConnectionGQL { private grpc; grpcMaxMessageLength: number; private params; private constructor(); static use: (params: GrpcConnectionParams) => Promise<{ connection: ConnectionGRPC; dbVersionProvider: import("../utils/dbVersion.js").DbVersionProvider; dbVersionSupport: DbVersionSupport; }> | { connection: ConnectionGRPC; dbVersionProvider: import("../utils/dbVersion.js").DbVersionProvider; dbVersionSupport: DbVersionSupport; }; reconnect(): Promise; private static connect; batch: (collection: string, consistencyLevel?: ConsistencyLevel, tenant?: string) => Promise; aggregate: (collection: string, consistencyLevel?: ConsistencyLevel, tenant?: string) => Promise; search: (collection: string, consistencyLevel?: ConsistencyLevel, tenant?: string, abortSignal?: AbortSignal) => Promise; tenants: (collection: string) => Promise; close: () => void; } export interface GrpcClient { aggregate: (collection: string, consistencyLevel?: ConsistencyLevel, tenant?: string, bearerToken?: string) => Aggregate; batch: (collection: string, consistencyLevel?: ConsistencyLevel, tenant?: string, bearerToken?: string) => Batch; close: () => void; health: () => Promise; search: (collection: string, consistencyLevel?: ConsistencyLevel, tenant?: string, bearerToken?: string, abortSignal?: AbortSignal) => Search; tenants: (collection: string, bearerToken?: string) => Tenants; } export declare const grpcClient: (config: GrpcConnectionParams & { grpcMaxMessageLength: number; }) => GrpcClient;