/** The slice of Bun's `Bun.WebView` the main-thread service drives (Bun ships no Node types for it). */
export interface NativeWebView extends EventTarget {
    readonly url: string;
    readonly title: string;
    readonly loading: boolean;
    onNavigated: ((url: string, title: string) => void) | null;
    onNavigationFailed: ((error: Error) => void) | null;
    navigate(url: string): Promise<void>;
    close(): void;
    /** Raw Chrome DevTools Protocol on the view's session (Chrome backend only). */
    cdp?(method: string, params?: Readonly<Record<string, unknown>>): Promise<unknown>;
}
export interface NativeWebViewClass {
    new (options: Readonly<Record<string, unknown>>): NativeWebView;
    closeAll(): void;
}
/** `Bun.WebView` when this thread may construct Chrome-backed views: Bun runtime, process main thread. */
export declare function mainThreadWebViewClass(): NativeWebViewClass | undefined;
//# sourceMappingURL=native-webview.d.ts.map