import { IDisposable } from 'ts-toolset'; import { IVariableEntity } from '../../../models/html'; export declare const mainFunctional = "mainFunctional"; export interface IFunctional extends IDisposable { getVariable(key: string, storeKey: string): IVariableEntity | undefined; appendVariable(variable: IVariableEntity | IVariableEntity[], key: string): IFunctional; updateVariable(): IFunctional; removeVariable(): IFunctional; appendFunction(func: any, key: string): IFunctional; } export declare class Functional implements IFunctional { private _variableStores; private _functionStores; private _mainVariableStore; private _mainFunctionStore; constructor(); private _initStore; getVariable(key: string, storeKey?: any): IVariableEntity | undefined; /** 添加变量到指定集合,默认添加到 主变量集合(mainFunctional),当指定集合不存在时会根据指定storeKey创建一个新当集合 */ appendVariable(variable: IVariableEntity | IVariableEntity[], storeKey?: any): Functional; updateVariable(): this; removeVariable(): this; appendFunction(func: any, storeKey?: any): this; dispose(): Functional; }