import { INodeTypes } from 'n8n-workflow' ; import { InternalHooksClass } from './InternalHooks' ; import { Telemetry } from './telemetry' ; export class InternalHooksManager { private static internalHooksInstance : InternalHooksClass ; static getInstance ( ) { if ( this . internalHooksInstance ) { return this . internalHooksInstance ; } throw new Error ( 'InternalHooks not initialized' ) ; } static init ( instanceId , versionCli , nodeTypes ) { if ( ! this . internalHooksInstance ) { this . internalHooksInstance = new InternalHooksClass ( new Telemetry ( instanceId , versionCli ) , versionCli , nodeTypes ) ; } return this . internalHooksInstance ; } }