/****************************************************************************** * Copyright 2021 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. ******************************************************************************/ import Generator from 'yeoman-generator'; export interface Answers { extensionName: string; rawLanguageName: string; fileExtensions: string; includeVSCode: boolean; includeCLI: boolean; includeExampleProject: boolean; includeTest: boolean; entryName: string; } export interface PostAnwers { openWith: string | false; } /** * This is a sub-set of LangiumConfig from langium-cli. * We copy this to not introduce a dependency to langium-cli itself. */ export interface LangiumLanguageConfigSubset { id: string; grammar: string; fileExtensions?: string[]; textMate?: { out: string; }; monarch?: { out: string; }; } export declare class LangiumGenerator extends Generator { private answers; prompting(): Promise; writing(): void; install(): Promise; end(): Promise; _extensionPath(...path: string[]): string; _replaceTemplateWords(fileExtensionGlob: string, languageName: string, languageId: string, content: string | Buffer): string; _replaceLocalLangium(content: string): string; _readJson(filePath: string): T; _replaceTemplateNames(languageId: string, path: string): string; } export default LangiumGenerator; //# sourceMappingURL=index.d.ts.map