In order te introduce a classical encapsulation approach, provide a Class based implementation of the store.
export class NotificationStore {
private notifications: Readable<INotification[]>;
pushNotification(...);
popNotification(...);
}
const store = new NotificationStore();
export default store;