import { pluginResources } from './resources.js'; import { type PluginLayout } from './formats.js'; import { z } from 'zod'; export { containedPath } from './contained-path.js'; export declare const PLUGIN_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"; export declare const MCP_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json"; export declare const pluginName: z.ZodString; declare const manifestSchema: z.ZodObject<{ $schema: z.ZodLiteral<"https://agent-plugins.org/schemas/1.0.0/plugin.schema.json">; name: z.ZodString; version: z.ZodOptional; description: z.ZodOptional; author: z.ZodOptional; email: z.ZodOptional; url: z.ZodOptional; }, z.core.$strict>>; homepage: z.ZodOptional; repository: z.ZodOptional; license: z.ZodOptional; keywords: z.ZodOptional>; extensions: z.ZodOptional>; }, z.core.$strip>; declare const serverSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"stdio">; command: z.ZodString; args: z.ZodOptional>; env: z.ZodOptional>; cwd: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"streamable-http">; url: z.ZodString; headers: z.ZodOptional>; oauth: z.ZodOptional; clientId: z.ZodOptional; callbackPort: z.ZodOptional; callbackUrl: z.ZodOptional; clientName: z.ZodOptional; clientRegistration: z.ZodOptional>; authServerMetadataUrl: z.ZodOptional; }, z.core.$strict>>; connectionAuth: z.ZodOptional; headerName: z.ZodOptional; prefix: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">; export type PluginManifest = z.infer; export type PluginServer = z.infer; export interface PluginDiagnostic { component: string; message: string; } export interface PluginInspection { resources?: ReturnType; layout?: PluginLayout; manifest: PluginManifest; rootDir: string; skills: Array<{ name: string; filePath: string; description?: string; }>; servers: Record; capabilities: string[]; diagnostics: PluginDiagnostic[]; } export declare function expandPluginVariables(value: string, root: string, data: string): string; export declare function resolvePluginCwd(cwd: string | undefined, root: string, data: string): string; export declare function validatePluginServer(raw: unknown, root: string, data: string): PluginServer; export declare function inspectAgentPlugin(rootDir: string, dataDir?: string, importManifest?: Record): PluginInspection; export declare function pluginServerId(pluginId: string, serverName: string): string;