import { type SyntaxNode } from './ts-parser.js'; export type RelativeJavascriptNode = { /** * Parser content node corresponding to the original tag content (excluding synthetic wrapper). */ contentNode: SyntaxNode; /** * Guessed nodes in the content subtree that start within the original content range. * Should be used with start offset correction (virtualOffset - start) to map back to original source positions. */ nodes: SyntaxNode[]; /** * Character offset of the content start in the virtual code (after synthetic wrapper) relative to the original content. * Should be used nodes position correction when mapping virtual code positions back to original source (virtualOffset - start + originalColumn). */ start: number; cleanup: () => void; missingCloseBracesCount: number; missingOpenBracesCount: number; bracesDelta: number; hasStructuralBraces: boolean; multilineOriginal: boolean; multilineTrimmed: boolean; splitStatements: () => string[]; }; /** * Tries to generate a approximate node for a Javascript partial code. */ export declare function parseJavaScriptPartial(text: string, incrementalCode?: string): RelativeJavascriptNode; //# sourceMappingURL=javascript-parser.d.ts.map