2017-03-04 20:10:46 +00:00
|
|
|
/// <reference types="node" />
|
|
|
|
export interface ISmartfileConstructorOptions {
|
|
|
|
path?: string;
|
|
|
|
contentsString?: string;
|
|
|
|
contentBuffer?: Buffer;
|
|
|
|
}
|
2016-05-19 22:31:53 +00:00
|
|
|
export declare class Smartfile {
|
2017-03-04 20:10:46 +00:00
|
|
|
path: string;
|
|
|
|
contents: Buffer;
|
|
|
|
constructor(optionsArg: ISmartfileConstructorOptions);
|
|
|
|
/**
|
|
|
|
* set contents from string
|
|
|
|
* @param contentString
|
|
|
|
*/
|
|
|
|
setContentFromString(contentString: string): void;
|
2016-05-19 22:31:53 +00:00
|
|
|
}
|