import type { ComponentID } from '@teambit/component'; import type { Harmony } from '@teambit/harmony'; import type { Logger, LoggerMain } from '@teambit/logger'; import type { WorkerMain } from '@teambit/worker'; export declare class ServiceHandlerContext { /** * id of the environment defined in the context. */ readonly envId: ComponentID; readonly loggerMain: LoggerMain; readonly workerMain: WorkerMain; readonly harmony: Harmony; constructor( /** * id of the environment defined in the context. */ envId: ComponentID, loggerMain: LoggerMain, workerMain: WorkerMain, harmony: Harmony); /** * return a logger instance for the env. */ createLogger(name?: string): Logger; /** * get an instance of an aspect. make sure it is loaded prior to requesting it. */ getAspect(aspectId: string): T; /** * create worker for the env context. */ createWorker(name: string, path: string): import("@teambit/worker").HarmonyWorker; }