import { Instance } from './Instance'; export declare abstract class BasicInstance implements Instance { /** * The context of the instance. */ private context; protected runningTask: boolean; abstract shutdown(): void | Promise; constructor(context: C); isFree(): boolean; submit(task: (i: C) => Promise): Promise; lock(): void | Promise; release(): void | Promise; /** * Gets the context of the instance. * * @returns the context of the instance. */ getContext(): C; }