UNPKG

370 BTypeScriptView Raw
1import { EventEmitter } from "node:events";
2import type { File, FileJSON } from "./index";
3
4declare class VolatileFile 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 = VolatileFile;