UNPKG

785 BTypeScriptView Raw
1import { Monitor } from '@neo-one/monitor-esnext-esm';
2import { Environment } from '../types';
3import { Provider } from './Provider';
4export interface Options {
5 readonly download?: {
6 readonly id: string;
7 readonly key: string;
8 };
9 readonly upload?: {
10 readonly email: string;
11 readonly password: string;
12 readonly file: string;
13 };
14}
15export declare class MegaProvider extends Provider {
16 private readonly environment;
17 private readonly options;
18 constructor({ environment, options }: {
19 readonly environment: Environment;
20 readonly options: Options;
21 });
22 canRestore(): Promise<boolean>;
23 restore(monitorIn: Monitor): Promise<void>;
24 backup(monitorIn: Monitor): Promise<void>;
25 private getMega;
26}