/** This file must only contain pure code and pure imports */ import { FlowGraphBlock } from "../../flowGraphBlock.js"; import { type FlowGraphContext } from "../../flowGraphContext.js"; import { type FlowGraphDataConnection } from "../../flowGraphDataConnection.pure.js"; import { type IFlowGraphBlockConfiguration } from "../../flowGraphBlock.js"; /** * Configuration for a constant block. */ export interface IFlowGraphConstantBlockConfiguration extends IFlowGraphBlockConfiguration { /** * The value of the constant. */ value: T; } /** * Block that returns a constant value. */ export declare class FlowGraphConstantBlock extends FlowGraphBlock { /** * the configuration of the block */ config: IFlowGraphConstantBlockConfiguration; /** * Output connection: The constant value. */ readonly output: FlowGraphDataConnection; constructor( /** * the configuration of the block */ config: IFlowGraphConstantBlockConfiguration); _updateOutputs(context: FlowGraphContext): void; /** * Gets the class name of this block * @returns the class name */ getClassName(): string; /** * Serializes this block * @param serializationObject the object to serialize to * @param valueSerializeFunction the function to use to serialize the value */ serialize(serializationObject?: any, valueSerializeFunction?: (key: string, value: any, serializationObject: any) => any): void; } /** * Register side effects for flowGraphConstantBlock. * Safe to call multiple times; only the first call has an effect. */ export declare function RegisterFlowGraphConstantBlock(): void;