export class BlacklistFilter {
    name = 'blacklist';
    stage;
    deny;
    constructor(stage, deny) {
        this.stage = stage;
        this.deny = new Set(deny || []);
    }
    apply(input) {
        if (!input || typeof input !== 'object')
            return { ok: true, data: input };
        const out = JSON.parse(JSON.stringify(input));
        for (const k of Object.keys(out)) {
            if (this.deny.has(k))
                delete out[k];
        }
        return { ok: true, data: out };
    }
}
