import { Colors, FxError, IPlugin, Platform, PluginManifestSchema, Result, TeamsAppManifest } from "@microsoft/teamsfx-api"; import { PluginManifestValidationResult } from "../interfaces/ValidationResult"; import { DriverContext } from "../../interface/commonArgs"; export declare class PluginManifestUtils { readPluginManifestFile(path: string): Promise>; /** * Get plugin manifest with env value filled. * @param path path of declaraitve Copilot * @returns resolved manifest */ getManifest(path: string, context: DriverContext): Promise>; validateAgainstSchema(plugin: IPlugin, path: string, context: DriverContext): Promise>; getApiSpecFilePathFromTeamsManifest(manifest: TeamsAppManifest, manifestPath: string): Promise>; logValidationErrors(validationRes: PluginManifestValidationResult, platform: Platform): string | Array<{ content: string; color: Colors; }>; getDefaultNextAvailableApiSpecPath(apiSpecPath: string, apiSpecFolder: string, isKiotaIntegration?: boolean): Promise; getApiSpecFileName(openApiSpecFileNamePrefix: string, openApiSpecFileType: string, apiSpecFileNameSuffix: number, isKiotaIntegration: boolean): string; getApiSpecFilePathFromPlugin(plugin: PluginManifestSchema, pluginPath: string): Promise; /** * Validate LocalPlugin runtimes that use MCP servers. * Validates four requirements: * 1. local_endpoint must start with mcp:// * 2. run_for_functions entries must match tool names in MCP server * 3. Function names must appear in run_for_functions * 4. Functions cannot redefine parameters—must match MCP server * @param manifest The plugin manifest to validate * @param _context Driver context for logging * @returns Array of validation error strings */ validateLocalMCPPluginRuntimes(manifest: PluginManifestSchema): Promise; /** * Validate that function parameters match exactly between manifest and MCP tool. * @param manifestFunc The function definition from the manifest * @param mcpTool The tool definition from MCP server * @param funcName The function name for error messages * @returns Array of validation error strings */ private validateFunctionParameters; } export declare const pluginManifestUtils: PluginManifestUtils; //# sourceMappingURL=PluginManifestUtils.d.ts.map