/** * Copyright 2023 Kapeta Inc. * SPDX-License-Identifier: BUSL-1.1 */ import { Definition } from '@kapeta/local-cluster-config'; import { BlockDefinition, BlockInstance, Plan } from '@kapeta/schemas'; import { Task } from './taskManager'; import { SourceOfChange } from './types'; export interface EnrichedAsset { ref: string; editable: boolean; exists: boolean; version: string; kind: string; data: Definition; path: string; ymlPath: string; } declare class AssetManager { startUpgradeInterval(): void; /** * * @param {string[]} [assetKinds] * @returns {{path: *, ref: string, data: *, editable: boolean, kind: *, exists: boolean}[]} */ getAssets(assetKinds?: string[]): Promise; getPlans(): Promise; getPlan(ref: string, noCache?: boolean): Promise; getBlockInstance(systemId: string, instanceId: string): Promise; getAsset(ref: string, noCache?: boolean, autoFetch?: boolean): Promise; createAsset(path: string, yaml: BlockDefinition, sourceOfChange?: SourceOfChange, codegen?: boolean): Promise; updateAsset(ref: string, yaml: Definition, sourceOfChange?: SourceOfChange): Promise; importFile(filePath: string): Promise; unregisterAsset(ref: string): Promise; installAsset(ref: string, wait?: boolean): Promise[] | undefined>; private cleanupUnusedProviders; private upgradeAllProviders; private maybeGenerateCode; } export declare const assetManager: AssetManager; export {};