import type { ParsedSymbol, ParsedEdge } from '../types.js'; /** * Regex-based parser for .hs files (fallback when hie-reader is not available). * * Extracts: * - Module declaration * - Import statements (qualified, as, hiding) * - Type signatures * - Function definitions * - Type/data/newtype/class declarations */ export interface HsParseResult { moduleName: string; symbols: ParsedSymbol[]; imports: HsImport[]; edges: ParsedEdge[]; } export interface HsImport { module: string; qualified: boolean; alias?: string; items?: string[]; } export declare function parseHsFile(content: string, filePath: string): HsParseResult; /** * Parse all .hs files and return combined results. */ export declare function parseHsFiles(hsFiles: string[], codebaseRoot: string): Map; //# sourceMappingURL=source-parser.d.ts.map