connector-base.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type * as d from '@stencil/core/internal';
  2. export declare class ScreenshotConnector implements d.ScreenshotConnector {
  3. rootDir: string;
  4. cacheDir: string;
  5. packageDir: string;
  6. screenshotDirName: string;
  7. imagesDirName: string;
  8. buildsDirName: string;
  9. masterBuildFileName: string;
  10. screenshotCacheFileName: string;
  11. logger: d.Logger;
  12. buildId: string;
  13. buildMessage: string;
  14. buildAuthor: string;
  15. buildUrl: string;
  16. previewUrl: string;
  17. buildTimestamp: number;
  18. appNamespace: string;
  19. screenshotDir: string;
  20. imagesDir: string;
  21. buildsDir: string;
  22. masterBuildFilePath: string;
  23. screenshotCacheFilePath: string;
  24. currentBuildDir: string;
  25. updateMaster: boolean;
  26. allowableMismatchedRatio: number;
  27. allowableMismatchedPixels: number;
  28. pixelmatchThreshold: number;
  29. waitBeforeScreenshot: number;
  30. pixelmatchModulePath: string;
  31. initBuild(opts: d.ScreenshotConnectorOptions): Promise<void>;
  32. pullMasterBuild(): Promise<void>;
  33. getMasterBuild(): Promise<d.ScreenshotBuild>;
  34. completeBuild(masterBuild: d.ScreenshotBuild): Promise<d.ScreenshotBuildResults>;
  35. publishBuild(results: d.ScreenshotBuildResults): Promise<d.ScreenshotBuildResults>;
  36. generateJsonpDataUris(build: d.ScreenshotBuild): Promise<void>;
  37. getScreenshotCache(): Promise<d.ScreenshotCache>;
  38. updateScreenshotCache(screenshotCache: d.ScreenshotCache, buildResults: d.ScreenshotBuildResults): Promise<d.ScreenshotCache>;
  39. toJson(masterBuild: d.ScreenshotBuild, screenshotCache: d.ScreenshotCache): string;
  40. sortScreenshots(screenshots: d.Screenshot[]): d.Screenshot[];
  41. sortCompares(compares: d.ScreenshotDiff[]): d.ScreenshotDiff[];
  42. }