/** @public */ export declare type W = number | 'majority'; /** @public */ export interface WriteConcernOptions { /** Write Concern as an object */ writeConcern?: WriteConcern | WriteConcernSettings; } /** @public */ export interface WriteConcernSettings { /** The write concern */ w?: W; /** The write concern timeout */ wtimeoutMS?: number; /** The journal write concern */ journal?: boolean; /** The journal write concern */ j?: boolean; /** The write concern timeout */ wtimeout?: number; /** The file sync write concern */ fsync?: boolean | 1; } export declare const WRITE_CONCERN_KEYS: string[]; /** * A MongoDB WriteConcern, which describes the level of acknowledgement * requested from MongoDB for write operations. * @public * * @see https://docs.mongodb.com/manual/reference/write-concern/ */ export declare class WriteConcern { /** request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags. */ w?: W; /** specify a time limit to prevent write operations from blocking indefinitely */ wtimeout?: number; /** request acknowledgment that the write operation has been written to the on-disk journal */ j?: boolean; /** equivalent to the j option */ fsync?: boolean | 1; /** * Constructs a WriteConcern from the write concern properties. * @param w - request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags. * @param wtimeout - specify a time limit to prevent write operations from blocking indefinitely * @param j - request acknowledgment that the write operation has been written to the on-disk journal * @param fsync - equivalent to the j option */ constructor(w?: W, wtimeout?: number, j?: boolean, fsync?: boolean | 1); /** Construct a WriteConcern given an options object. */ static fromOptions(options?: WriteConcernOptions | WriteConcern | W, inherit?: WriteConcernOptions | WriteConcern): WriteConcern | undefined; } //# sourceMappingURL=write_concern.d.ts.map