import 'reflect-metadata'; import { Logger, ModuleRegistry, ModulesConfig } from '@n8n/backend-common'; import { GlobalConfig } from '@n8n/config'; import { DbConnection } from '@n8n/db'; import { InstanceSettings, ErrorReporter, ExecutionContextHookRegistry } from 'n8n-core'; import type { AbstractServer } from '../abstract-server'; import { ExternalHooks } from '../external-hooks'; import { License } from '../license'; import { NodeTypes } from '../node-types'; import { ShutdownService } from '../shutdown/shutdown.service'; export declare abstract class BaseCommand { readonly flags: F; protected logger: Logger; protected dbConnection: DbConnection; protected errorReporter: ErrorReporter; protected externalHooks?: ExternalHooks; protected nodeTypes: NodeTypes; protected instanceSettings: InstanceSettings; protected server?: AbstractServer; protected shutdownService: ShutdownService; protected license: License; protected readonly globalConfig: GlobalConfig; protected readonly modulesConfig: ModulesConfig; protected readonly moduleRegistry: ModuleRegistry; protected readonly executionContextHookRegistry: ExecutionContextHookRegistry; protected gracefulShutdownTimeoutInS: number; protected needsCommunityPackages: boolean; protected needsTaskRunner: boolean; init(): Promise; protected stopProcess(): Promise; protected initCommunityPackages(): Promise; protected initCrashJournal(): Promise; protected exitSuccessFully(): Promise; protected exitWithCrash(message: string, error: unknown): Promise; protected log(message: string): void; protected error(message: string): void; initBinaryDataService(): Promise; protected initDataDeduplicationService(): Promise; initExternalHooks(): Promise; initLicense(): Promise; initWorkflowHistory(): void; cleanupTestRunner(): Promise; finally(error: Error | undefined): Promise; protected onTerminationSignal(signal: string): () => Promise; }