import * as _flowgram_ai_core from '@flowgram.ai/core'; import { PluginContext } from '@flowgram.ai/core'; import { VariableChainConfig } from '@flowgram.ai/variable-layout'; export { FlowNodeScope, FlowNodeScopeMeta, FlowNodeScopeType, FlowNodeVariableData, GlobalScope, ScopeChainTransformService, getNodePrivateScope, getNodeScope } from '@flowgram.ai/variable-layout'; import { ASTNodeRegistry } from '@flowgram.ai/variable-core'; export * from '@flowgram.ai/variable-core'; /** * @deprecated 请使用 @injectToAst(XXXService) declare xxxService: XXXService 实现外部依赖注入 */ type Injector = (ctx: PluginContext) => Record; interface VariablePluginOptions { enable?: boolean; /** * Custom Extends ASTNode */ extendASTNodes?: (ASTNodeRegistry | [ASTNodeRegistry] | [ASTNodeRegistry, Injector])[]; /** * Layout method */ layout?: 'fixed' | 'free'; /** * @deprecated use chainConfig instead */ layoutConfig?: VariableChainConfig; /** * Configuration for scope chain */ chainConfig?: VariableChainConfig; } declare const createVariablePlugin: _flowgram_ai_core.PluginCreator; export { type VariablePluginOptions, createVariablePlugin };