"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Triggers {
    messagePrefix;
    postMessage;
    static MESSAGE_PREFIX = 'triggers';
    /** @internal */
    constructor(messagePrefix, postMessage) {
        this.messagePrefix = messagePrefix;
        this.postMessage = postMessage;
    }
    /**
     * @internal
     * @todo
     */
    async pause() {
        await this.postMessage({ type: this.getMessage('pause') });
    }
    /**
     * @internal
     * @todo
     */
    async resume() {
        await this.postMessage({ type: this.getMessage('resume') });
    }
    getMessage(name) {
        return this.messagePrefix + '.' + Triggers.MESSAGE_PREFIX + '.' + name;
    }
}
exports.default = Triggers;
//# sourceMappingURL=Triggers.js.map