import { z } from "zod"; /** * Phase 3 of agent-namespace: `edit_agent` accepts ONLY the * canonical `/` ref (parity with `load_agent`). * Bare slugs return `missing_namespace` distinctly so the AI * surfaces the "use /" hint specifically. The * shared `parseAgentRef` runs the NFKC + lowercase pipeline so * threat T3 (case-fold parity) is defended at every entry point; * a mixed-case input like `Alice/Reviewer` is canonicalized * inside the handler rather than rejected with a generic Zod * regex error. Schema gates length only; shape validation * happens via the shared validator below. * * Parameter name is `ref` — same identifier `load_agent` consumes * — so the AI doesn't have to remember a different argument * shape between the two ref-consuming tools. */ export declare const editAgentSchema: { ref: z.ZodString; }; export declare function editAgentHandler(getApiUrl: () => string, publishHandler: () => Promise<{ ok: boolean; slug?: string; url?: string; error?: string; }>, draftSessionId: string): (args: { ref: string; }) => Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }>;