export interface Draft { name: string; slug: string; description: string; category: import("../shared/categories.js").Category; tags: string[]; visibility: "public" | "private"; content: string; version: string; updatedAt: string; /** * Set when the draft hydrates an existing agent (edit flow). Pins the slug * across `preview_agent` iterations and tells `publish_agent` to PATCH * instead of POST. */ originalSlug?: string; /** * Phase 3 of agent-namespace: the canonical `/` ref of * the agent being edited. `originalSlug` (bare slug) remains for * UX/preview-URL compatibility, but `publish_agent` PATCHes against * the full ref so the server route resolves correctly. */ originalRef?: string; } export declare function saveDraft(draftId: string, draft: Draft, home?: string): Promise; export declare function loadDraft(draftId: string, home?: string): Promise;