import { SpanKind } from '@opentelemetry/api'; import { ReadableSpan } from '@opentelemetry/tracing'; import * as mongodb from 'mongodb'; export interface MongoDBAccess { client: mongodb.MongoClient; collection: mongodb.Collection; } /** * Access the mongodb collection. * @param url The mongodb URL to access. * @param dbName The mongodb database name. * @param collectionName The mongodb collection name. */ export declare function accessCollection(url: string, dbName: string, collectionName: string): Promise; /** * Asserts root spans attributes. * @param spans Readable spans that we need to assert. * @param expectedName The expected name of the first root span. * @param expectedKind The expected kind of the first root span. * @param log * @param isEnhancedDatabaseReportingEnabled Is enhanced database reporting enabled: boolean */ export declare function assertSpans(spans: ReadableSpan[], expectedName: string, expectedKind: SpanKind, log?: boolean, isEnhancedDatabaseReportingEnabled?: boolean): void;