import { Context, FxError, GeneratorResult, Inputs, PluginManifestSchema, Result, UserError, Warning } from "@microsoft/teamsfx-api"; import { ItemMetadata } from "./oneDriveSharePointHandler"; /** * Derives a server entry name for an MCP server from its URL. Used by both the * "DA with MCP" scaffolding (to render `.vscode/mcp.json.tpl`) and the * "Add Action with MCP" flow (to append a new entry into `.vscode/mcp.json`). * * Strips non-alphanumeric characters from the host and truncates to 10 chars. * Falls back to `"mcpServer"` when the URL is missing or invalid. */ export declare function deriveMCPServerNameFromUrl(mcpServerUrl: string | undefined): string; /** * Creates a brand-new empty action plugin manifest (`ai-plugin.json`) under the * project's `appPackage` folder and registers it as a new action in the * declarative agent manifest. * * Used by the "Add MCP Action" flow when the user opts to create a new * action manifest rather than reuse an existing one. * * @param projectPath Absolute project root. * @param desiredFileName File name (no path) for the new plugin manifest, e.g. "ai-plugin.json". * If a file with this name already exists, an incrementing suffix is added. * @param declarativeAgentManifestPath Absolute path to the declarative agent manifest file * (e.g. `appPackage/declarativeAgent.json`). * @returns The absolute path to the newly-created plugin manifest and the action id used to register it. */ export declare function createNewActionPluginManifest(projectPath: string, desiredFileName: string, declarativeAgentManifestPath: string): Promise>; export interface AddExistingPluginResult { warnings: Warning[]; destinationPluginManifestPath: string; } export declare function addExistingPlugin(declarativeCopilotManifestPath: string, fromPluginManifestPath: string, fromApiSpecPath: string, actionId: string, context: Context, source: string): Promise>; export declare function validateSourcePluginManifest(manifest: PluginManifestSchema, source: string): Result; export declare function getODSPItemInfo(context: Context, itemUrl: string | undefined): Promise>; export interface GCItem { id: string; label: string; } export declare function getGraphConnectors(): Promise; export declare function generateForMCPForDA(destinationPath: string, inputs: Inputs): Promise>; //# sourceMappingURL=helper.d.ts.map