2016-05-23 06:15:47 +00:00
|
|
|
import "typings-global";
|
2016-05-01 21:19:54 +00:00
|
|
|
import plugins = require("./smartfile.plugins");
|
|
|
|
/**
|
|
|
|
* allows you to create a gulp stream
|
|
|
|
* from String, from an Array of Strings, from Vinyl File, from an Array of VinylFiles
|
|
|
|
* @param fileArg
|
|
|
|
* @returns stream.Readable
|
|
|
|
* @TODO: make it async;
|
|
|
|
*/
|
|
|
|
export declare let toGulpStream: (fileArg: string | string[] | plugins.vinyl | plugins.vinyl[], baseArg?: string) => any;
|
|
|
|
/**
|
|
|
|
* converts file to Object
|
|
|
|
* @param fileStringArg
|
|
|
|
* @param fileTypeArg
|
|
|
|
* @returns {any|any}
|
|
|
|
*/
|
|
|
|
export declare let toObject: (fileStringArg: string, fileTypeArg: string) => any;
|
|
|
|
/**
|
|
|
|
* takes a string and converts it to vinyl file
|
|
|
|
* @param fileArg
|
|
|
|
* @param optionsArg
|
|
|
|
*/
|
|
|
|
export declare let toVinylFileSync: (fileArg: string, optionsArg?: {
|
|
|
|
filename?: string;
|
|
|
|
base?: string;
|
|
|
|
relPath?: string;
|
|
|
|
}) => plugins.vinyl;
|
|
|
|
/**
|
|
|
|
* takes a string array and some options and returns a vinylfile array
|
|
|
|
* @param arrayArg
|
|
|
|
* @param optionsArg
|
|
|
|
*/
|
|
|
|
export declare let toVinylArraySync: (arrayArg: string[], optionsArg?: {
|
|
|
|
filename?: string;
|
|
|
|
base?: string;
|
|
|
|
relPath?: string;
|
|
|
|
}) => any[];
|
|
|
|
/**
|
|
|
|
* takes a vinylFile object and converts it to String
|
|
|
|
*/
|
|
|
|
export declare let toStringSync: (fileArg: plugins.vinyl) => string;
|
|
|
|
/**
|
|
|
|
* writes string or vinyl file to disk.
|
|
|
|
* @param fileArg
|
|
|
|
* @param fileNameArg
|
|
|
|
* @param fileBaseArg
|
|
|
|
*/
|
2016-06-24 01:36:51 +00:00
|
|
|
export declare let toFs: (fileContentArg: string | plugins.vinyl, filePathArg: any) => any;
|
|
|
|
export declare let toFsSync: (fileArg: any, filePathArg: string) => void;
|