UNPKG

screenshotgenie

Version:
15 lines (14 loc) 747 B
import type { ImageGenerationInputs, ImageKey, ScreenshotGenieConfig, ImageHash, ImageFileName, FormattedDateString } from "./types"; export type { ImageGenerationInputs, ImageKey, ScreenshotGenieConfig, ImageHash, ImageFileName, FormattedDateString }; /** * Screenshot Genie client library for generating and managing screenshots */ export declare class ScreenshotGenie { private apiKey; private host; constructor(config?: ScreenshotGenieConfig); createImageKey(imageGenerationInputs: ImageGenerationInputs): Promise<ImageKey>; getImageUrl(imageKey: ImageKey, width: number): string; downloadImage(url: string, filePath: string): Promise<void>; } export declare const isImageKeyExpired: (imageKey: ImageKey) => boolean;