import type { FileContentsParser, ParsedRegion } from '../types/index.js'; interface RegionParseResult { hunks: ParsedRegion[]; parsed: string; } /** * Extract region hunks from file content using the provided extension map. * * Not exported from barrel files — used directly in tests and by createGenericRegionParser. * * @param content - File content to parse (should be post-frontmatter-strip if applicable) * @param fileName - File name (used to derive extension for map lookup) * @param extensionMap - Map of extension → array of regex pattern strings with {token} * @param startTag - Token substituted for region start markers * @param endTag - Token substituted for region end markers * @returns Extracted hunks and content with region marker lines stripped */ export declare function extractRegionFromFileContent(content: string, fileName: string, extensionMap: Record, startTag: string, endTag: string): RegionParseResult; /** * Create a FileContentsParser that extracts region hunks for any extension * present in the provided extension map. Used by the scanner for all files. */ export declare function createGenericRegionParser(extensionMap: Record, startTag: string, endTag: string): FileContentsParser; export {}; //# sourceMappingURL=parser.d.ts.map