import { WriteFileOptions } from "fs"; import { IFileWriter } from "./IFileWriter"; export declare class ResourceWriter implements IFileWriter { path: string; config: { encoding?: WriteFileOptions; readType?: 'stream' | 'buffer'; }; static readonly Initable = true; private existed; private writer; get isFile(): boolean; constructor(path: string, config?: { encoding?: WriteFileOptions; readType?: 'stream' | 'buffer'; }); write(data: any): Promise; }