/** * Copyright 2023 Kapeta Inc. * SPDX-License-Identifier: BUSL-1.1 */ import { BlockInstanceDetails, ConfigProvider, DefaultCredentials, DefaultResourceOptions, InstanceOperator, ResourceInfo } from '@kapeta/sdk-config'; import { Definition, DefinitionInfo } from '@kapeta/local-cluster-config'; import { BlockDefinition, Plan } from '@kapeta/schemas'; import { AnyMap, EnvironmentType } from '../types'; /** * A configuration provider that does the same as the LocalConfigProvider * but without calling the API of the local cluster service (since it's running in the same process) */ export declare class InternalConfigProvider implements ConfigProvider { private readonly info; private readonly systemId; private readonly instanceId; private readonly config; private readonly environment; constructor(systemId: string, instanceId: string, info: DefinitionInfo, config: AnyMap, environment?: EnvironmentType); getBlockDefinition(): Definition; getBlockReference(): string; getSystemId(): string; getInstanceId(): string; getServerPort(portType?: string | undefined): Promise; getServiceAddress(serviceName: string, portType: string): Promise; getResourceInfo(resourceType: string, portType: string, resourceName: string): Promise | null>; getInstanceHost(instanceId: string): Promise; getServerHost(): Promise; getProviderId(): string; getOrDefault(path: string, defaultValue: T): T; get(path: string): T | undefined; getInstanceOperator(instanceId: string): Promise | null>; getInstanceForConsumer(resourceName: string): Promise | null>; getInstancesForProvider(resourceName: string): Promise[]>; getBlock(ref: any): Promise; getPlan(): Promise; } export declare function createInternalConfigProvider(systemId: string, instanceId: string, info: DefinitionInfo, config: AnyMap): Promise;