import { type MutationHint } from "../chat/types.js"; import { type DrizzleExecutor } from "../drizzle.js"; import { type DocumentChannelAttachment, type DocumentSummary } from "./types.js"; /** * Attaches an existing owner- or channel-accessible document to a channel the actor may * post to by inserting one `documentChannelAttachments` row and advancing `documents.updatedAt`. * The owner always has document access; members inherit access through any attachment, * while inaccessible document or channel checks both return `not_found`. The transaction * records `document.attached` so global and channel lists reconcile atomically. */ export declare function documentAttach(executor: DrizzleExecutor, input: { actorUserId: string; documentId: string; chatId: string; }): Promise<{ attachment: DocumentChannelAttachment; document: DocumentSummary; hint: MutationHint; }>; //# sourceMappingURL=documentAttach.d.ts.map