UNPKG

reshuffle-aws-connectors

Version:
22 lines (21 loc) 727 B
/// <reference types="node" /> export interface Executed { error?: Error; stdout: string | Buffer; stderr: string | Buffer; } export declare class Folder { private recursive; private base; private didInitializeDirectory; constructor(name: string, recursive?: boolean); copy(targetName: string, sourcePath: string): Promise<void>; destroy(): Promise<void>; exec(cmd: string): Promise<Executed>; contains(filename: string): Promise<boolean>; init(): Promise<void>; path(name: string): string; write(targetName: string, data: string): Promise<void>; zip(options?: any): Promise<Buffer>; } export declare function zipOne(filename: string, data: string): Promise<Buffer>;