@lastos/page-spy-plugin-data-harbor
Version:
Used for caching data and downloading.
13 lines (12 loc) • 549 B
TypeScript
import { DataType } from '../harbor/base';
export declare const getDeviceId: () => any;
export declare const formatFilename: (name: string) => string;
export declare const minifyData: (d: any) => string;
export declare const makeData: <T extends DataType>(type: T, data: any) => {
type: T;
timestamp: number;
data: string;
};
export declare const jsonToFile: (data: any, filename: string) => File;
export declare const isValidMaximum: (maximum: unknown) => maximum is number;
export declare function formatTime(seconds: number): string;