import { type MutationHint } from "../chat/types.js"; import { type DrizzleExecutor } from "../drizzle.js"; import { type DocumentFormat, type DocumentSummary } from "./types.js"; /** * Creates one owner-accessible standalone `documents` row seeded with the canonical * empty Yjs snapshot, plus optional `documentUpdates` initial content and an optional * `documentChannelAttachments` row when the actor may post to the requested channel. An * optional active agent member may be attributed as creator while the authenticated actor * retains ownership, making agent-created documents member-manageable without losing agent * attribution on the initial update, attachment, or sync event. One transaction records * `document.created` so every visible document list reconciles through the documents area, * which is why creation and optional attachment share this boundary. */ export declare function documentCreate(executor: DrizzleExecutor, input: { actorUserId: string; attributedCreatorUserId?: string; chatId?: string; title: string; format: DocumentFormat; initialUpdate?: string; }): Promise<{ document: DocumentSummary; hint: MutationHint; }>; //# sourceMappingURL=documentCreate.d.ts.map