1 | export declare function getTempName(prefix?: string | null | undefined): string;
|
2 | export interface GetTempFileOptions {
|
3 | prefix?: string | null;
|
4 | suffix?: string | null;
|
5 | disposer?: ((file: string) => Promise<void>) | null;
|
6 | }
|
7 | export declare class TmpDir {
|
8 | private readonly debugName;
|
9 | private tempFiles;
|
10 | private registered;
|
11 | constructor(debugName?: string);
|
12 | readonly rootTempDir: Promise<string>;
|
13 | getTempDir(options?: GetTempFileOptions): Promise<string>;
|
14 | createTempDir(options?: GetTempFileOptions): Promise<string>;
|
15 | getTempFile(options?: GetTempFileOptions, isDir?: boolean): Promise<string>;
|
16 | cleanupSync(): void;
|
17 | cleanup(): Promise<any>;
|
18 | toString(): string;
|
19 | }
|
20 |
|
\ | No newline at end of file |