/********************************************************************** * Copyright (c) 2022-2024 * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 ***********************************************************************/ import { V230Devfile, V230DevfileMetadata } from '@devfile/api'; import { DevfileContext } from './api/devfile-context'; export type DevfileLike = V230Devfile & { metadata: V230DevfileMetadata & { generateName?: string; }; }; export declare const DEVWORKSPACE_METADATA_ANNOTATION = "dw.metadata.annotations"; export declare class Generate { private devContainerComponentFinder; generate(devfileContent: string, editorContent: string, outputFile?: string, injectDefaultComponent?: string, defaultComponentImage?: string): Promise; generateContent(devfileContent: string, editorContent: string, injectDefaultComponent?: string, defaultComponentImage?: string): Promise; private createDevWorkspaceMetadata; }