import { PermanentStorageResult } from '../../../domain/model/permanentStorageResult.interface.js'; import { SaveBase64ImageOptions } from '../../../domain/model/saveBase64ImageOptions.interface.js'; import { PermanentStorageDrivenPort } from '../../../port/driven/permanentStoragePort.js'; import { LocalSaveScreenshotAdapterOptions } from './localSaveScreenshot.interface.js'; import { Logger } from '@wdio/logger'; /** * A class that implements the PermanentStorageDrivenPort interface for local file storage of screenshots. */ export declare class LocalSaveScreenshot implements PermanentStorageDrivenPort { private _config; private _log; /** * Creates an instance of LocalSaveScreenshot. * * @param {LocalSaveScreenshotAdapterOptions} config - Configuration options for local saving of screenshots. * @param {Logger} log - Logger for logging messages. */ constructor(config: LocalSaveScreenshotAdapterOptions, log: Logger); /** * Get and create a folder with a specific name based on input and environment. * * @param {ScreenshotFilePathOptions} options - Options for generating the folder name, including the browser name. * @returns {string} The full path to the created folder. */ private _getAndCreatePath; /** * Formats a filename based on specified options. * * @param {ScreenshotFileNameOptions} options - The options used for formatting the filename. * @returns {string} The formatted filename as a string. */ private _formatFileName; /** * Save a base64 image to a file. * * @param {string} base64Image - The base64 image data to be saved. * @param {SaveBase64ImageOptions} saveBase64ImageOptions - Options for saving the base64 image. * @returns {Promise} A Promise that resolves when the image is successfully saved. */ saveBase64Image(base64Image: string, saveBase64ImageOptions: SaveBase64ImageOptions): Promise; } //# sourceMappingURL=localSaveScreenshot.d.ts.map