import type { ConsoleLogEntry } from "./consoleLogger"; export interface WebViewState { url: string; title: string; user_agent: string; viewport: { width: number; height: number; }; } export interface ConsoleMessage { level: string; message: string; timestamp: number; } export interface ClearDebugLogsResult { deleted_paths: string[]; truncated_paths: string[]; failed_paths: string[]; } export interface CopyScreenshotResult { source_path: string; destination_path: string; } /** * Get WebView state. */ export declare function captureWebViewState(): Promise; /** * Get console logs (from the frontend logger). * This works without opening Safari DevTools. */ export declare function getConsoleLogs(): ConsoleLogEntry[]; /** * Get error logs only. */ export declare function getConsoleErrors(): ConsoleLogEntry[]; /** * Get the latest N logs. */ export declare function getRecentConsoleLogs(count?: number): ConsoleLogEntry[]; /** * Get log statistics. */ export declare function getConsoleLogStats(): { total: number; byLevel: Record; }; /** * Clear logs. */ export declare function clearConsoleLogs(): void; /** * Send a debug command (event-based). * @param command Command name * @param payload Payload data */ export declare function sendDebugCommand(command: string, payload: Record): Promise; /** * Clear frontend/backend debug log files for the current host app. */ export declare function clearDebugLogFiles(): Promise; /** * Copy a screenshot file to the debug-tools screenshots directory. * @param sourcePath Path to the source screenshot file * @returns Source and destination paths */ export declare function copyScreenshotToDebugDir(sourcePath: string): Promise; //# sourceMappingURL=debugBridge.d.ts.map