import { ICollectionConfig } from './async/ICollectionConfig'; import { IDataCollection } from './async/IDataCollection'; import { Item } from './types/Item'; import { IndexDef } from './types/IndexDef'; export interface TransactionOptions { } export interface CSTransaction { startTransaction(options: TransactionOptions): Promise; abortTransaction(): Promise; commitTransaction(): Promise; endSession(): Promise; } export declare class CSDatabase implements CSTransaction { private root; private inTransaction; private collections; constructor(root: string); private writeSchema; connect(): Promise; load(): Promise; close(): Promise; collectionList: Map>; private registerCollection; createCollection(name: string): IDataCollection; listCollections(): Array>; dropCollection(name: string): boolean; collection(name: string): IDataCollection | undefined; createIndex(collection: string, name: string, def: IndexDef): void; dropIndex(collection: string, name: string): void; persist(): Promise; startSession(): Promise; endSession(): Promise; startTransaction(options: TransactionOptions): Promise; abortTransaction(): Promise; commitTransaction(): Promise; }