import { BlockConfig, ConnectionConfig, ConnectedNode, ConnectionResult, MethodDict } from './types.js'; /** * The idea behind this class is that each component in the * block tree will have an instance and it contains references * to hook methods from other components in the tree. The actions * dictionary for the owner component is passed to the actions * method which wraps the methods and includes the corresponding * hooks that it should call. This allows each component in the * tree to be able to call any hook from any other component and * it also allows the action to call multiple hooks. */ declare class Connection { id: string; private config; private hookMap; constructor(config: ConnectionConfig[]); hooks(hooks: MethodDict, cid: string): void; actions(actions: MethodDict): void; } export default Connection; export declare function addHooksToConnectMaps(config: ConnectedNode[], cid: string, hooks: { [key: string]: Set; }): void; export declare function createConnections(blockConfig: BlockConfig): ConnectionResult; //# sourceMappingURL=Connection.d.ts.map