import { DocumentClient } from 'documentdb'; import { DocumentWriteCallback, DocumentWriter, WriteOperation } from './base-bot-logger'; export interface DocumentDbWriterOptions { /** DocumentDb database name (created if it does not exist) */ databaseName: string; /** DocumentDb collection name (created if it does not exist) */ collectionName: string; /** Default configuration for created collections */ defaults?: { /** Collection throughput for created collections */ collectionThroughput?: number; /** Default time-to-live for created collections */ ttl?: number; /** Partition key to use, if the collection is partitioned */ partitionKey?: string; }; } export declare class DocumentDbWriter implements DocumentWriter { private client; private options; private initializer; private readonly db; private readonly coll; constructor(client: DocumentClient, options: DocumentDbWriterOptions); write(operation: WriteOperation, callback: DocumentWriteCallback): void; private writeAfterInit; private init; private createDatabaseIfNotExists; private databaseExists; private createCollectionIfNotExists; private collectionExists; }