screenshot-fs.d.ts 1.1 KB

123456789101112131415
  1. /// <reference types="node" />
  2. import type * as d from '@stencil/core/internal';
  3. export declare function writeScreenshotImage(imagePath: string, screenshotBuf: Buffer): Promise<void>;
  4. export declare function writeScreenshotData(dataDir: string, screenshotData: d.Screenshot): Promise<void>;
  5. export declare function readScreenshotData(dataDir: string, screenshotId: string): Promise<d.Screenshot>;
  6. export declare function fileExists(filePath: string): Promise<boolean>;
  7. export declare function readFile(filePath: string): Promise<string>;
  8. export declare function readFileBuffer(filePath: string): Promise<Buffer>;
  9. export declare function writeFile(filePath: string, data: any): Promise<void>;
  10. export declare function mkDir(filePath: string): Promise<void>;
  11. export declare function rmDir(filePath: string): Promise<void>;
  12. export declare function emptyDir(dir: string): Promise<void>;
  13. export declare function readDir(dir: string): Promise<string[]>;
  14. export declare function isFile(itemPath: string): Promise<boolean>;
  15. export declare function unlink(filePath: string): Promise<void>;