1 | /**
|
2 | * Provide a safe place to store files
|
3 | */
|
4 | export declare class WorkspaceProvider {
|
5 | directory: string;
|
6 | tmp: string;
|
7 | /**
|
8 | * Generate a filepath. Useful for temp file or test.
|
9 | *
|
10 | * @return Random filepath
|
11 | */
|
12 | rand(): string;
|
13 | /**
|
14 | * Get absolute path of workspace file.
|
15 | *
|
16 | * @param entry
|
17 | * @return {string}
|
18 | */
|
19 | join(...entry: string[]): string;
|
20 | protected onStart(): Promise<void>;
|
21 | protected onStop(): Promise<void>;
|
22 | }
|