export const Cfg = { action: {} as Record, addAction: function(name: string, callback: Function) { this.action[name] = callback; }, globalState: {} as Record, // Global state definition setGlobalState: function(key: string, value: any) { // Method to set global state this.globalState[key] = value; }, getGlobalState: function(key: string) { // Method to get global state return this.globalState[key]; }, updateGlobalState: function(updates: Record) { // Method to update global state Object.assign(this.globalState, updates); } }