/** * DOM Capture utilities for tauri-plugin-debug-tools * * Provides DOM snapshot capture functionality for AI-powered debugging. */ export interface ViewportInfo { width: number; height: number; } export interface DomSnapshotMetadata { url: string; title: string; timestamp: number; viewport: ViewportInfo; } export interface DomSnapshotResult { path: string; metadata: DomSnapshotMetadata; } export interface LogDirectoryInfo { base_dir: string; frontend_log: string; backend_log: string; screenshot_dir: string; dom_snapshot_dir: string; } /** * Capture full DOM as HTML string */ export declare function captureDOMHTML(): string; /** * Get current DOM metadata */ export declare function getDOMMetadata(): DomSnapshotMetadata; /** * Capture and save DOM snapshot to backend * * @returns Path to saved DOM snapshot file with metadata * * @example * ```typescript * const result = await captureDOMSnapshot(); * console.log(`DOM saved: ${result.path}`); * console.log(`URL: ${result.metadata.url}`); * ``` */ export declare function captureDOMSnapshot(): Promise; /** * Get unified log directory information * * @returns Paths to all log directories * * @example * ```typescript * const dirs = await getLogDirectory(); * console.log(`Base dir: ${dirs.base_dir}`); * console.log(`Frontend logs: ${dirs.frontend_log}`); * console.log(`Rust logs: ${dirs.backend_log}`); * ``` */ export declare function getLogDirectory(): Promise; //# sourceMappingURL=domCapture.d.ts.map