/** * JavaScript/TypeScript AST Parser * * Uses @babel/parser to parse JS/TS source code and extract * IR elements: entrypoints, sources, sinks, assignments, auth signals, * tenant scopes, MCP tool definitions, sessions, credential vaults, cache entries. */ import type { IR, ParsedFile } from '../types.js'; export interface JsParseResult { ir: Partial; file: ParsedFile; /** Present when parsing failed (catastrophic error or unrecoverable syntax). */ parseError?: string; } export declare function parseJsFile(sourceCode: string, filename: string, projectRoot: string, config?: { authHelpers?: string[]; tenantGuards?: string[]; framework?: string; }): JsParseResult; //# sourceMappingURL=js-parser.d.ts.map