/** * @author yefuwang@microsoft.com */ import { Context, FxError, GeneratorResult, Inputs, Result } from "@microsoft/teamsfx-api"; import * as officeAddinProject from "office-addin-project"; import { ActionContext } from "../../middleware/actionExecutionMW"; import { DefaultTemplateGenerator } from "../defaultGenerator"; import { TemplateInfo } from "../templates/templateInfo"; export declare const officeAddinGeneratorDeps: { convertProject: typeof officeAddinProject.convertProject; }; /** * case 1: project-type=office-xml-addin-type AND addin-host=outlook * case 2: project-type=office-addin-type (addin-host=undefined) * case 3: project-type=outlook-addin-type (addin-host=undefined) */ export declare class OfficeAddinGenerator { static doScaffolding(context: Context, inputs: Inputs, destinationPath: string): Promise>; /** * Ensure a `package.json` with a `scripts` object exists at `addinRoot`. * The project package's `convertProject` reads * `./package.json` and unconditionally calls `Object.keys(content.scripts)`, * which throws runtime errors when the field is missing. Creating or * normalizing the file beforehand prevents the crash. */ static ensurePackageJsonForConvert(addinRoot: string): Promise; } type OfficeHost = "Outlook" | "Word" | "Excel" | "PowerPoint"; export declare function getHost(addinManifestPath: string): Promise; export declare class OfficeAddinGeneratorNew extends DefaultTemplateGenerator { componentName: string; activate(context: Context, inputs: Inputs): boolean; getTemplateInfos(context: Context, inputs: Inputs, destinationPath: string, actionContext?: ActionContext): Promise>; post(context: Context, inputs: Inputs, destinationPath: string, actionContext?: ActionContext): Promise>; } export {}; //# sourceMappingURL=generator.d.ts.map