import { ZlibOptions } from "zlib"; export type GzipOpts = Omit; export interface MongoDBConnection { /** * https://docs.mongodb.com/manual/reference/connection-string/ * A uri contains credentials (if necessary) and the hostname or ip address. * this uri used in order to authenticate to the source MondoDB server. * example: * mongodb://username:password@host:27017 */ uri: string; /** * The name of the database to create a dump for. */ dbname: string; /** * The time in milliseconds to attempt a connection before timing out. */ connectTimeoutMS?: number; /** * Disables cursor timeout property and index version metadata for MongoDB Atlas free tier use. */ isAtlasFreeTier?: boolean; } export interface CollectionMetadata { /* the name of the collection */ name: string; /* The size in bytes of a collection */ size: number; /* A list of indexes that were created */ indexes: any[]; } export interface Progress { total: number; write: number; }