/** * Browser bridge: the JS-side of _browser_bridge that CPython calls into. * * When CPython executes `_browser_bridge.system(cmd, cwd)`, the Emscripten * JS glue calls this function, which delegates to ToolRunner.system(). * * This is registered with CPython via Emscripten's `-sEXTRA_EXPORTED_RUNTIME_METHODS` * or injected as a built-in module in CPython's frozen modules. */ import type { ToolRunner } from '../tool-runner.js'; /** * Create the _browser_bridge function table for injection into CPython. * Returns an object that maps Python function names to JS implementations. */ export declare function createBrowserBridge(runner: ToolRunner): BrowserBridge; export interface BrowserBridge { system(command: string, cwd: string): Promise<[number, string, string]>; getenv(name: string, defaultValue: string): string; which(name: string): string | null; } //# sourceMappingURL=browser-bridge.d.ts.map