import { Database } from '../database'; import { SeederCollection, LogFn } from '../common'; /** * Allows to import collections into database. */ export declare class CollectionImporter { /** * Wrapper for MongoDB database */ db: Database; /** * Logger instance */ log: LogFn; /** * Constructs new `CollectionImporter` instance. * * @param db Database object */ constructor(db: Database, log?: LogFn); /** * Imports multiple collections into database. * * @param collections Array of collections */ import(collections: SeederCollection[]): Promise; /** * Imports single collection into database. * * @param collection Collection definition */ private importCollection; }