import { LanguageParser } from './parser-interface.js';
import { ParseResult } from '../types.js';

/**
 * StaticFileParser — index-only parser for Markdown, HTML, CSS, and JSON files.
 *
 * Does NOT extract symbols. Only extracts file-level dependency references so
 * these files appear in the graph and their link relationships are recorded.
 *
 * Extraction rules:
 *  - Markdown : [text](url) inline links + ![alt](url) image links
 *  - HTML     : href="…", src="…", @import "…", url("…")
 *  - CSS/SCSS : @import "…", url("…")
 *  - JSON     : $ref, $schema, "extends", top-level string values that look like paths
 */

declare class StaticFileParser implements LanguageParser {
    readonly languageName = "static";
    get supportedExtensions(): string[];
    parse(filePath: string, source: string): Promise<ParseResult>;
}

export { StaticFileParser };
