import { DSQLClient } from '../dsql/client.js'; import type { KernelEvent } from '../types.js'; export interface BrowserEnvironmentOptions { /** Port the kernel HTTP transport is listening on. Defaults to 7341. */ httpPort?: number; } /** * BrowserEnvironment connects to a running DSR kernel from a browser context * (e.g. an online IDE or web-based design tool) via the HTTP fallback transport. * * Uses SSE (Server-Sent Events) for kernel push events when EventSource is * available in the browser. */ export declare class BrowserEnvironment { #private; constructor(options?: BrowserEnvironmentOptions); connect(): Promise; disconnect(): Promise; get dsql(): DSQLClient; onEvent(handler: (event: KernelEvent) => void): () => void; } //# sourceMappingURL=browser.d.ts.map