/** * Screenshot storage service for browser-use agents. * * This service handles storing screenshots to disk and retrieving them as base64 strings. * Screenshots are saved in a dedicated screenshots subdirectory within the agent's working directory. */ /** * Simple screenshot storage service that saves screenshots to disk */ export declare class ScreenshotService { private agentDirectory; private screenshotsDir; /** * Initialize with agent directory path * @param agentDirectory Path to the agent's working directory */ constructor(agentDirectory: string); /** * Create the screenshots directory if it doesn't exist */ private initializeDirectory; /** * Store screenshot to disk and return the full path as string * @param screenshotB64 Base64 encoded screenshot data * @param stepNumber Current step number for filename * @returns Promise resolving to the full file path */ storeScreenshot(screenshotB64: string, stepNumber: number): Promise; /** * Load screenshot from disk path and return as base64 * @param screenshotPath Full path to the screenshot file * @returns Promise resolving to base64 string or null if file doesn't exist */ getScreenshot(screenshotPath: string): Promise; /** * Get the screenshots directory path * @returns The full path to the screenshots directory */ getScreenshotsDirectory(): string; /** * List all screenshot files in the directory * @returns Promise resolving to array of screenshot filenames */ listScreenshots(): Promise; /** * Delete all screenshots in the directory * @returns Promise that resolves when cleanup is complete */ cleanup(): Promise; /** * Get the size of the screenshots directory in bytes * @returns Promise resolving to total size in bytes */ getDirectorySize(): Promise; } export default ScreenshotService; //# sourceMappingURL=index.d.ts.map