/** * Screenshot Helper for tauri-plugin-screenshots * * Provides simplified screenshot capture utilities. */ import { getMonitorScreenshot, getScreenshotableMonitors, getScreenshotableWindows, getWindowScreenshot } from "tauri-plugin-screenshots-api"; import { type DomSnapshotResult } from "./domCapture"; /** * Capture screenshot of the main (first) window * * @returns Path to saved screenshot, or null if no windows available * * @example * ```typescript * const path = await captureMainWindow(); * if (path) { * console.log(`Screenshot saved: ${path}`); * } * ``` */ export declare function captureMainWindow(): Promise; /** * Capture screenshots of all available windows * * @returns Array of screenshot paths * * @example * ```typescript * const paths = await captureAllWindows(); * console.log(`Captured ${paths.length} screenshots`); * ``` */ export declare function captureAllWindows(): Promise; /** * Capture screenshot of the primary monitor * * @returns Path to saved screenshot, or null if no monitors available * * @example * ```typescript * const path = await capturePrimaryMonitor(); * if (path) { * console.log(`Monitor screenshot saved: ${path}`); * } * ``` */ export declare function capturePrimaryMonitor(): Promise; /** * Get list of all screenshotable windows * * @returns Array of window information */ export declare function listWindows(): Promise; /** * Get list of all screenshotable monitors * * @returns Array of monitor information */ export declare function listMonitors(): Promise; /** * Capture screenshot with DOM snapshot * * @returns Object containing screenshot path and DOM snapshot result * * @example * ```typescript * const { screenshot, domSnapshot } = await captureWithDOM(); * console.log(`Screenshot: ${screenshot}`); * console.log(`DOM: ${domSnapshot.path}`); * ``` */ export declare function captureWithDOM(): Promise<{ screenshot: string | null; domSnapshot: DomSnapshotResult; }>; /** * Capture screenshot of the main window and copy to debug-tools directory. * * @returns Path to the copied screenshot in debug-tools/screenshots/, or null if failed * * @example * ```typescript * const path = await captureMainWindowToDebugDir(); * if (path) { * console.log(`Screenshot saved to debug dir: ${path}`); * } * ``` */ export declare function captureMainWindowToDebugDir(): Promise; export { getScreenshotableWindows, getWindowScreenshot, getScreenshotableMonitors, getMonitorScreenshot, }; //# sourceMappingURL=screenshotHelper.d.ts.map