export class DetourRegistry {
    inbound = [];
    outbound = [];
    add(direction, entry) {
        if (direction === 'inbound') {
            this.inbound.push(entry);
            return;
        }
        this.outbound.push(entry);
    }
    snapshot() {
        return {
            inbound: [...this.inbound],
            outbound: [...this.outbound]
        };
    }
    drain(direction) {
        if (direction === 'inbound') {
            return [...this.inbound];
        }
        return [...this.outbound];
    }
}
