"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IMAPSyncResult = void 0;
const tslib_1 = require("tslib");
const path = tslib_1.__importStar(require("path"));
// tslint:disable-next-line: no-var-requires
let bindings;
try {
    bindings = require(path.join(__dirname, "../../lib/binding/trusted_mailcore2.node"));
}
catch (e) {
    bindings = require(path.join(__dirname, "../../lib/binding/trusted_mailcore2_no_crypto.node"));
}
// tslint:disable-next-line
const { IMAPSyncResult: _IMAPSyncResult } = bindings;
/**
 * IMAPSyncResult Class
 *
 * @public
 */
class IMAPSyncResult extends bindings.IMAPSyncResult {
    constructor() {
        super();
        const handle = new _IMAPSyncResult();
        this.handle = handle;
    }
    /**
     * Get modifiedOrAddedMessages
     *
     * @type {IMAPMessage[]}
     * @memberof IMAPSyncResult
     */
    get modifiedOrAddedMessages() {
        return this.handle.modifiedOrAddedMessages;
    }
    /**
     * Get vanished messages
     *
     * @type {number[]}
     * @memberof IMAPSyncResult
     */
    get vanishedMessages() {
        return this.handle.vanishedMessages;
    }
}
exports.IMAPSyncResult = IMAPSyncResult;
//# sourceMappingURL=IMAPSyncResult.js.map