/** * synap doc create / synap doc update * * Manage markdown documents on the pod. * * Usage: * synap doc create --title "My Doc" --content "# Hello" [--workspace ] [--open] * synap doc create --title "My Doc" --file ./notes.md [--open] * echo "# Hello" | synap doc create --title "My Doc" * * synap doc update --content "new body" [--title "New Title"] * synap doc update --file ./notes.md * echo "updated" | synap doc update * * API: * POST /api/hub/documents — { userId, workspaceId?, title, content?, type? } * PATCH /api/hub/documents/:id — { userId, content } (full-replace, proposal-gated) */ export interface DocCreateOpts { title: string; content?: string; file?: string; workspace?: string; open?: boolean; json?: boolean; podUrl?: string; apiKey?: string; } export interface DocUpdateOpts { content?: string; file?: string; title?: string; open?: boolean; json?: boolean; podUrl?: string; apiKey?: string; } export interface DocReferenceOpts { title: string; workspace?: string; open?: boolean; json?: boolean; podUrl?: string; apiKey?: string; } export declare function docCreate(opts: DocCreateOpts): Promise; /** * synap doc reference — create an external reference document (no bytes). * Reuses the same POST /api/hub/documents door as `doc create`, sending a `url` * field instead of `content`. */ export declare function docReference(url: string, opts: DocReferenceOpts): Promise; export declare function docUpdate(documentId: string, opts: DocUpdateOpts): Promise;