@lastos/page-spy-plugin-mp-data-harbor
Version:
Used for caching data and downloading.
13 lines (12 loc) • 538 B
TypeScript
import { type MPSDK } from '@lastos/page-spy-mp-base';
import type { SpyMessage } from '@lastos/page-spy-types';
export declare const getMPSDK: () => MPSDK;
export declare const setMPSDK: (sdk: MPSDK) => void;
export declare const getDeviceId: () => any;
export declare const formatFilename: (name: string) => string;
export declare const makeData: <T extends SpyMessage.DataType>(type: T, data: any) => {
type: T;
timestamp: number;
data: any;
};
export declare const buildSearchParams: (obj: Record<string, any>) => string;