import { Colors, DeclarativeAgentManifest, DeclarativeCopilotCapabilityName, DeclarativeCopilotManifestSchema, FxError, IDeclarativeCopilot, Platform, Result, SharePointIDs, Site } from "@microsoft/teamsfx-api"; import { Context } from "vm"; import { DriverContext } from "../../interface/commonArgs"; import { DeclarativeCopilotManifestValidationResult } from "../interfaces/ValidationResult"; export declare class CopilotGptManifestUtils { readCopilotGptManifestFile(path: string): Promise>; readDeclarativeAgentManifestFile(path: string): Promise>; readCopilotGptManifestFileSync(path: string): Result; readDeclarativeAgentManifestFileSync(path: string): Result; /** * Get Declarative Copilot Manifest with env value filled. * @param path path of declaraitve Copilot * @returns resolved manifest */ getManifest(path: string, context: DriverContext): Promise>; writeCopilotGptManifestFile(manifest: DeclarativeCopilotManifestSchema, path: string): Promise>; writeDeclarativeAgentManifestFile(manifest: DeclarativeAgentManifest, path: string): Promise>; validateAgainstSchema(declaraitveCopilot: IDeclarativeCopilot, manifestPath: string, context: DriverContext): Promise>; getManifestPath(teamsManifestPath: string): Promise>; updateConversationStarters(actionPath: string, gptManifest: DeclarativeCopilotManifestSchema): Promise; addAction(copilotGptPath: string, id: string, pluginFile: string): Promise>; logValidationErrors(validationRes: DeclarativeCopilotManifestValidationResult, platform: Platform): string | Array<{ content: string; color: Colors; }>; getDefaultNextAvailablePluginManifestPath(folder: string, pluginManifestFileName?: string, isKiotaIntegration?: boolean): Promise; addEmbeddedKnowledgeFiles(manifestFilePath: string, filePathList: string[]): Promise>; getPluginManifestFileName(pluginManifestNamePrefix: string, pluginFileNameSuffix: number, isKiotaIntegration: boolean): string; updateDeclarativeAgentManifest(manifestPath: string, declarativeAgentManifestPath: string, declarativeCopilotActionId: string, pluginManifestPath: string): Promise>; addOneDriveSharePointCapability(agentManifestPath: string, items_by_sharepoint_ids: SharePointIDs | null, items_by_url: Site | null, manifestRes: Result): Promise>; addWebSearchCapability(context: Context, agentManifestPath: string, items_by_url: Site | null, manifestRes: Result): Promise>; addGCCapability(agentManifestPath: string, inputConnectionIds: string[], manifestRes: Result): Promise>; /** * Updates or adds a capability in the agent manifest. * * @param agentManifestPath - The path to the agent manifest file. * @param capabilityName - The name of the capability to update or add. * @param manifestRes - The result containing the agent manifest schema. * @param capabilityData - The data for the capability to update or add. */ addOrUpdateCapability(agentManifestPath: string, capabilityName: DeclarativeCopilotCapabilityName, manifestRes: Result, capabilityData: any): Promise>; } export declare const copilotGptManifestUtils: CopilotGptManifestUtils; //# sourceMappingURL=CopilotGptManifestUtils.d.ts.map