1 | /**
|
2 | * @file for directory processing
|
3 | */
|
4 | /// <reference types="node" />
|
5 | /**
|
6 | * create unique name directory
|
7 | *
|
8 | * @param {string} template template string for file directory
|
9 | * @param {Function} [callback]
|
10 | * @return {Promise}
|
11 | */
|
12 | export declare function createDir(template: string, callback?: (err: NodeJS.ErrnoException | null, dirname: string | null) => void): undefined | Promise<string | null>;
|
13 | /**
|
14 | * sync version createDir
|
15 | *
|
16 | * @param {string} template template string for directory name
|
17 | * @throws {Error} if caught error
|
18 | * @return {string} dirname
|
19 | */
|
20 | export declare function createDirSync(template: string): string;
|