import type { ParseResult } from "../types/index.js"; export type ParseTSJSFn = (content: string, lines: string[]) => ParseResult; interface SFCBlock { /** 1-indexed line number where the block's content starts. */ startLine: number; /** 1-indexed line number where the block's content ends. */ endLine: number; content: string; lang?: string; setup?: boolean; } interface SFCBlocks { template: SFCBlock | null; /** The block we treat as canonical for symbol extraction (setup if both exist). */ script: SFCBlock | null; /** The "other" script block when both `