/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { EventEmitter } from 'events';
export var TodoEvent;
(function (TodoEvent) {
    TodoEvent["TODO_UPDATED"] = "todo-updated";
})(TodoEvent || (TodoEvent = {}));
export class TodoEventEmitter extends EventEmitter {
    emitTodoUpdated(event) {
        return this.emit(TodoEvent.TODO_UPDATED, event);
    }
    onTodoUpdated(listener) {
        return this.on(TodoEvent.TODO_UPDATED, listener);
    }
    offTodoUpdated(listener) {
        return this.off(TodoEvent.TODO_UPDATED, listener);
    }
}
// Create a singleton instance
export const todoEvents = new TodoEventEmitter();
//# sourceMappingURL=todo-events.js.map