/** * Copyright 2023 Kapeta Inc. * SPDX-License-Identifier: BUSL-1.1 */ import { DefinitionInfo } from '@kapeta/local-cluster-config'; import { ContainerInfo } from './containerManager'; import { AnyMap, EnvironmentType } from './types'; import { LocalInstance } from '@kapeta/schemas'; import { ResourceInfo } from '@kapeta/sdk-config'; declare class Operator { private readonly _data; constructor(data: DefinitionInfo); getLocalData(): LocalInstance; getDefinitionInfo(): DefinitionInfo; getCredentials(): any; } declare class OperatorManager { private _mountDir; private operatorLock; constructor(); _getMountPoint(operatorType: string, mountName: string): string; /** * Get operator definition for resource type */ getOperator(fullName: string, version: string): Promise; /** * Get information about a specific consumed resource */ getConsumerResourceInfo(systemId: string, fromServiceId: string, resourceType: string, portType: string, name: string, environment?: EnvironmentType, ensureContainer?: boolean): Promise>; getOperatorPorts(systemId: string, kind: string, version: string): Promise; /** * Ensure we have a running operator of given type * * @param systemId the plan ref * @param kind the full name - e.g. myhandle/rabbitmq * @param version the version of the operator */ ensureOperator(systemId: string, kind: string, version: string): Promise; } export declare const operatorManager: OperatorManager; export {};