import { CustomGetter, CustomSetter, IStateInfo } from '../../types/state.types'; export declare class StateStore { protected states: IStateInfo[]; private defaultValue; /** * If you want to set a custom getter, use .setCustomGetter method * */ private customGetter; /** * If you want to set a custom setter, use .setCustomSetter method * */ private customSetter; /** * If you set a custom getter, when the user wants to get the store, he will ask your method * @param customGetter Custom getter you want to save. Your getter can take user id, params from the handler, and default value as arguments. Getter must return object (state) * */ setCustomGetter(customGetter: CustomGetter): true; /** * If you set a custom setter, when the user wants to change the store, he will alert your method * @param customSetter Custom setter you want to save. Your setter can take user id, key that will be changed, new value, and params from the handler * */ setCustomSetter(customSetter: CustomSetter): true; /** * Set default value for state * @param defaultValue Default value you want to set. Must be an object * */ setDefaultValue(defaultValue: T): true; getStore(userId: number, params?: any): Promise; } export declare const stateStore: StateStore;