import { z } from 'zod'; export declare const PLUGIN_MANIFEST_FILE = "valora-plugin.json"; export declare const PLUGIN_HOOKS_FILE = "hooks.json"; export declare const PLUGIN_MCPS_FILE = "mcps.json"; /** * Plugin names must be lowercase kebab-case starting with an alphanumeric. * Enforced both at manifest validation time (Zod schema) and at every site that * uses the name as a path segment (path-join into install/staging/scope dirs). */ export declare const PLUGIN_NAME_REGEX: RegExp; export declare function assertValidPluginName(name: unknown): asserts name is string; export declare const PLUGIN_CONTRIBUTION_TYPE_SCHEMA: z.ZodEnum<["agent-context", "agents", "code", "commands", "hooks", "mcps", "prompts", "templates", "validators"]>; export declare const PLUGIN_PERMISSION_SCHEMA: z.ZodEnum<["code-exec", "fs-read", "fs-write", "mcp-connect", "network", "shell-hooks"]>; export declare const PLUGIN_BINARY_REQUIREMENT_SCHEMA: z.ZodObject<{ autoInstall: z.ZodOptional; checkCommand: z.ZodOptional; install: z.ZodOptional; installCommand: z.ZodOptional; name: z.ZodString; postInstallCommand: z.ZodOptional; version: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; install?: string | undefined; version?: string | undefined; autoInstall?: boolean | undefined; checkCommand?: string | undefined; installCommand?: string | undefined; postInstallCommand?: string | undefined; }, { name: string; install?: string | undefined; version?: string | undefined; autoInstall?: boolean | undefined; checkCommand?: string | undefined; installCommand?: string | undefined; postInstallCommand?: string | undefined; }>; export declare const PLUGIN_CLI_ENTRY_SCHEMA: z.ZodObject<{ description: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; description: string; }, { name: string; description: string; }>; export declare const PLUGIN_MANIFEST_SCHEMA: z.ZodObject<{ cli: z.ZodOptional, "many">>; codeEntrypoint: z.ZodOptional; contributes: z.ZodOptional, "many">>; description: z.ZodOptional; engines: z.ZodOptional; }, "strip", z.ZodTypeAny, { valora?: string | undefined; }, { valora?: string | undefined; }>>; homepage: z.ZodOptional; name: z.ZodString; overrides: z.ZodOptional>; permissions: z.ZodOptional, "many">>; requires: z.ZodOptional>; requiresBinary: z.ZodOptional; checkCommand: z.ZodOptional; install: z.ZodOptional; installCommand: z.ZodOptional; name: z.ZodString; postInstallCommand: z.ZodOptional; version: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; install?: string | undefined; version?: string | undefined; autoInstall?: boolean | undefined; checkCommand?: string | undefined; installCommand?: string | undefined; postInstallCommand?: string | undefined; }, { name: string; install?: string | undefined; version?: string | undefined; autoInstall?: boolean | undefined; checkCommand?: string | undefined; installCommand?: string | undefined; postInstallCommand?: string | undefined; }>, "many">>; validators: z.ZodOptional, "many">>; version: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; validators?: { stage: string; module: string; }[] | undefined; description?: string | undefined; cli?: { name: string; description: string; }[] | undefined; codeEntrypoint?: string | undefined; contributes?: ("code" | "hooks" | "agents" | "commands" | "prompts" | "agent-context" | "mcps" | "templates" | "validators")[] | undefined; engines?: { valora?: string | undefined; } | undefined; homepage?: string | undefined; overrides?: string[] | undefined; permissions?: ("code-exec" | "fs-read" | "fs-write" | "mcp-connect" | "network" | "shell-hooks")[] | undefined; requires?: string[] | undefined; requiresBinary?: { name: string; install?: string | undefined; version?: string | undefined; autoInstall?: boolean | undefined; checkCommand?: string | undefined; installCommand?: string | undefined; postInstallCommand?: string | undefined; }[] | undefined; }, { name: string; version: string; validators?: { stage: string; module: string; }[] | undefined; description?: string | undefined; cli?: { name: string; description: string; }[] | undefined; codeEntrypoint?: string | undefined; contributes?: ("code" | "hooks" | "agents" | "commands" | "prompts" | "agent-context" | "mcps" | "templates" | "validators")[] | undefined; engines?: { valora?: string | undefined; } | undefined; homepage?: string | undefined; overrides?: string[] | undefined; permissions?: ("code-exec" | "fs-read" | "fs-write" | "mcp-connect" | "network" | "shell-hooks")[] | undefined; requires?: string[] | undefined; requiresBinary?: { name: string; install?: string | undefined; version?: string | undefined; autoInstall?: boolean | undefined; checkCommand?: string | undefined; installCommand?: string | undefined; postInstallCommand?: string | undefined; }[] | undefined; }>; export declare const PLUGIN_HOOKS_FILE_SCHEMA: z.ZodObject<{ hooks: z.ZodOptional; command: z.ZodString; statusMessage: z.ZodOptional; timeout: z.ZodOptional; type: z.ZodLiteral<"command">; }, "strip", z.ZodTypeAny, { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }, { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }>, "many">; matcher: z.ZodString; }, "strip", z.ZodTypeAny, { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }, { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }>, "many">>; PreToolUse: z.ZodOptional; command: z.ZodString; statusMessage: z.ZodOptional; timeout: z.ZodOptional; type: z.ZodLiteral<"command">; }, "strip", z.ZodTypeAny, { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }, { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }>, "many">; matcher: z.ZodString; }, "strip", z.ZodTypeAny, { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }, { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }>, "many">>; }, "strip", z.ZodTypeAny, { PostToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; PreToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; }, { PostToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; PreToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { hooks?: { PostToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; PreToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; } | undefined; }, { hooks?: { PostToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; PreToolUse?: { hooks: { type: "command"; command: string; timeout?: number | undefined; async?: boolean | undefined; statusMessage?: string | undefined; }[]; matcher: string; }[] | undefined; } | undefined; }>; //# sourceMappingURL=plugin-manifest.schema.d.ts.map