import { ErrorParserRegistry } from './types.js';
import { nodeParser } from './parsers/node.js';
import { pythonParser } from './parsers/python.js';
import { rustParser } from './parsers/rust.js';
import { goParser } from './parsers/go.js';
import { shellParser } from './parsers/shell.js';
import { compilerParser } from './parsers/compiler.js';
import { genericParser } from './parsers/generic.js';
let registryInstance = null;
export function getParserRegistry() {
    if (!registryInstance) {
        registryInstance = new ErrorParserRegistry();
        registryInstance.register(nodeParser);
        registryInstance.register(pythonParser);
        registryInstance.register(rustParser);
        registryInstance.register(goParser);
        registryInstance.register(shellParser);
        registryInstance.register(compilerParser);
        registryInstance.register(genericParser);
    }
    return registryInstance;
}
export function parseError(input) {
    return getParserRegistry().parse(input);
}
//# sourceMappingURL=error-parser.js.map