type MongoServerError = {
    errorResponse: {
        errmsg: string;
        errInfo?: {
            [key: string]: any;
        };
    };
    [key: string]: any;
};
export declare function handleMongoError<E extends MongoServerError>(error: E): E;
export declare function handleMongoError(error: any): any;
export {};
//# sourceMappingURL=handleMongoError.d.ts.map