UNPKG

@lastos/page-spy-plugin-rn-async-storage

Version:
20 lines (19 loc) 882 B
import type { SocketStoreBase } from '@lastos/page-spy-base/dist/socket-base'; import type { SpyStorage, PageSpyPlugin, OnInitParams } from '@lastos/page-spy-types'; import { InitConfigBase } from '@lastos/page-spy-base'; export default class RNAsyncStoragePlugin implements PageSpyPlugin { name: string; static hasInitd: boolean; static originFunctions: import("@react-native-async-storage/async-storage").AsyncStorageStatic; $socketStore: SocketStoreBase | null; $pageSpyConfig: InitConfigBase | null; onInit(params: OnInitParams<InitConfigBase>): void; onReset(): void; sendRefresh(): Promise<void>; listenRefreshEvent(): void; initStorageProxy(): void; sendSetItem(key: string, value: string): void; sendRemoveItem(key: string): void; sendClearItem(): void; sendStorageItem(info: Omit<SpyStorage.DataItem, 'id'>): void; }