import { F as FlowGraphBlock } from './KHR_interactivity-BGk_Crki.esm.js';
import { R as RichTypeAny, d as RichTypeNumber } from './declarationMapper-CyxdrUFP.esm.js';
import { R as RegisterClass } from './index-BvJBnIUK.esm.js';
import './objectModelMapping-BtiDAwYm.esm.js';

/** This file must only contain pure code and pure imports */
/**
 * A block that outputs elements from the context
 */
class FlowGraphContextBlock extends FlowGraphBlock {
    constructor(config) {
        super(config);
        this.userVariables = this.registerDataOutput("userVariables", RichTypeAny);
        this.executionId = this.registerDataOutput("executionId", RichTypeNumber);
    }
    _updateOutputs(context) {
        this.userVariables.setValue(context.userVariables, context);
        this.executionId.setValue(context.executionId, context);
    }
    serialize(serializationObject) {
        super.serialize(serializationObject);
    }
    getClassName() {
        return "FlowGraphContextBlock" /* FlowGraphBlockNames.Context */;
    }
}
let _Registered = false;
/**
 * Register side effects for flowGraphContextBlock.
 * Safe to call multiple times; only the first call has an effect.
 */
function RegisterFlowGraphContextBlock() {
    if (_Registered) {
        return;
    }
    _Registered = true;
    RegisterClass("FlowGraphContextBlock" /* FlowGraphBlockNames.Context */, FlowGraphContextBlock);
}

/**
 * Re-exports pure implementation and applies runtime side effects.
 * Import flowGraphContextBlock.pure for tree-shakeable, side-effect-free usage.
 */
RegisterFlowGraphContextBlock();

export { FlowGraphContextBlock, RegisterFlowGraphContextBlock };
//# sourceMappingURL=flowGraphContextBlock-D0z5Xvzx.esm.js.map
