1 | import { Monitor } from '@neo-one/monitor-esnext-esm';
|
2 | import { Environment } from '../types';
|
3 | import { Provider } from './Provider';
|
4 | export 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 | }
|
15 | export 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 | }
|