UNPKG

361 BTypeScriptView Raw
1import EventEmitter = require("events");
2import { File, FileJSON } from "./";
3
4declare class PersistentFile extends EventEmitter {
5 constructor(properties: File);
6 open(): void;
7 toJSON(): FileJSON;
8 toString(): string;
9 write(buffer: string, cb: () => void): void;
10 end(cb: () => void): void;
11 destroy(): void;
12}
13
14export = PersistentFile;