/*!
 * @package @coolgk/utils
 * @version 3.1.4
 * @link https://github.com/coolgk/node-utils
 * @license MIT
 * @author Daniel Gong <daniel.k.gong@gmail.com>
 *
 * Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
 * Licensed under the MIT License.
 */

/*!
 *  Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
 *  Licensed under the MIT License.
 */
export interface ITmpConfig {
    mode?: number;
    prefix?: string;
    postfix?: string;
    dir?: string;
    keep?: boolean;
}
export interface ITmpFileResponse {
    path: string;
    fd: string;
    cleanupCallback: () => void;
}
export interface ITmpDirResponse {
    path: string;
    cleanupCallback: () => void;
}
export interface ITmpNameResponse {
    path: string;
}
export declare function generateFile(options?: ITmpConfig): Promise<ITmpFileResponse>;
export declare function generateDir(options?: ITmpConfig): Promise<ITmpDirResponse>;
export declare function generateTmpName(options?: ITmpConfig): Promise<ITmpNameResponse>;
export declare function generate(action: string, options?: ITmpConfig): Promise<any>;
