import { EventEmitter } from '@kano/common/index.js';
export class ChallengeBase {
    constructor(editor) {
        this._onDidEnd = new EventEmitter();
        this._onDidRequestShare = new EventEmitter();
        this.editor = editor;
    }
    get onDidEnd() { return this._onDidEnd.event; }
    get onDidRequestShare() { return this._onDidRequestShare.event; }
    setData(data) {
        this.data = data;
    }
}
//# sourceMappingURL=base.js.map