import { z } from "zod"; import { type Draft } from "../../preview/draft-store.js"; export declare const previewAgentSchema: { name: z.ZodString; description: z.ZodString; category: z.ZodString; tags: z.ZodOptional>; visibility: z.ZodOptional>; content: z.ZodString; version: z.ZodOptional; editing: z.ZodOptional; }; export declare function previewAgentHandler(publishHandler: () => Promise<{ ok: boolean; slug?: string; url?: string; error?: string; }>, draftSessionId: string): (args: { name: string; description: string; category: Draft["category"]; tags?: string[]; visibility?: Draft["visibility"]; content: string; version?: string; editing?: boolean; }) => Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }>;