import { chatVT } from "../index";
export const TOKEN = 'CHATVT_TOKEN';
export const USER = 'CHATVT_USER';
export const LANG = 'CHATVT_LANG';
export async function load(key) {
  let user = await chatVT.AsyncStorage.getItem(key);
  if (user !== undefined && user !== null) {
    return JSON.parse(user);
  } else {
    return null;
  }
}
export async function save(key, data) {
  await chatVT.AsyncStorage.setItem(key, JSON.stringify(data));
}
export function clearAll() {
  chatVT.AsyncStorage.clear();
}
//# sourceMappingURL=MyAsyncStorage.js.map