import { StoreOptions , StoreLangs } from '../interfaces/index' ; import { defaults } from '../shared/index' ; import { createStore } from '../store/index' ; export const useOptions = { store : createStore ( defaults ) , set ( options ) { this . store . setState ( options ) ; } , get ( ) { return this . store . getState ( ) ; } , } ; export const useLangs = { store : createStore ( { } ) , set ( options ) { this . store . setState ( options ) ; } , get ( ) { return this . store . getState ( ) ; } , } ;