/** * Get the 1-based line number for a character index in source text. */ export declare function getLineNumber(source: string, index: number): number; /** * Extract a context window around a position in source text. * Truncates with "..." if the window extends beyond the source bounds. */ export declare function extractContext(body: string, index: number, width: number): string; /** * Find the parent component name by scanning backwards from a JSX usage. * Looks for the nearest enclosing JSX element or function/const declaration. */ export declare function findParentComponent(source: string, usageIndex: number): string | null; //# sourceMappingURL=SourceLocationUtils.d.ts.map