UNPKG

476 BTypeScriptView Raw
1/// <reference types="node" />
2import { Readable } from 'stream';
3import { StructuredWriter } from './structuredWriter';
4export declare class DirectoryWriter implements StructuredWriter {
5 private readonly rootDestination?;
6 constructor(rootDestination?: string | undefined);
7 addToStore(contents: string | Readable | Buffer, targetPath: string): Promise<void>;
8 finalize(): Promise<void>;
9 getDestinationPath(): string | undefined;
10 get buffer(): Buffer;
11}