/** * Browser entry point for Circle-IR * * This module provides a browser-compatible API for code analysis. */ import { type AnalyzerOptions } from './analyzer.js'; import type { CircleIR, AnalysisResponse } from './types/index.js'; import type { SupportedLanguage } from './core/index.js'; export interface BrowserAnalyzerOptions extends AnalyzerOptions { /** * URL to the tree-sitter.wasm file, or a pre-compiled WebAssembly.Module. * String URL for browser usage, WebAssembly.Module for Cloudflare Workers. */ wasmUrl: string | WebAssembly.Module; /** * URLs to language grammar WASM files, or pre-compiled WebAssembly.Modules. * String URLs for browser usage, WebAssembly.Modules for Cloudflare Workers. */ languageUrls?: Partial>; } /** * Initialize the analyzer for browser/worker usage. */ export declare function init(options: BrowserAnalyzerOptions): Promise; /** * Analyze source code and return full Circle-IR output. */ export declare function analyzeCode(code: string, options?: { filePath?: string; language?: SupportedLanguage; }): Promise; /** * Analyze source code and return simplified API response. */ export declare function analyzeCodeForAPI(code: string, options?: { filePath?: string; language?: SupportedLanguage; }): Promise; export type { CircleIR, AnalysisResponse, Vulnerability, TaintSource, TaintSink, SupportedLanguage, } from './index.js'; //# sourceMappingURL=browser.d.ts.map