/**
 * Default Detection Plugin
 * Wraps the existing AsyncIterationDetector
 */
import { AsyncIterationDetector } from '../../transformer/detector.js';
export class DefaultDetectionPlugin {
    name = 'atp-default-detector';
    version = '1.0.0';
    priority = 100;
    patterns = [
        'for-of-await',
        'while-await',
        'map-async',
        'forEach-async',
        'filter-async',
        'reduce-async',
        'find-async',
        'some-async',
        'every-async',
        'flatMap-async',
        'promise-all',
        'promise-allSettled',
    ];
    detector;
    constructor() {
        this.detector = new AsyncIterationDetector();
    }
    async detect(code, ast) {
        // Use existing detector
        return this.detector.detect(code);
    }
}
//# sourceMappingURL=detection-plugin.js.map