import { type MutationHint } from "../chat/types.js"; import { type DrizzleExecutor } from "../drizzle.js"; import type { DocumentRealtimeAudience, DocumentWriteRequestSummary } from "./types.js"; /** Applies one pending staged Yjs batch exactly once and marks its documentWriteRequests row approved in the same top-level transaction, but only for an active member who can post in the request chat, while the document remains attached there, and while its sequence still matches the staged base. A sequence conflict throws outside the transaction so the route can durably fail the held request; successful approval records the deciding user and advances `document.write_approved` with the content update atomically. */ export declare function documentWriteRequestApprove(executor: DrizzleExecutor, input: { actorUserId: string; chatId: string; requestId: string; now: number; }): Promise<{ request: DocumentWriteRequestSummary; acceptedSequence: string; replayed: boolean; audience: DocumentRealtimeAudience; hint: MutationHint; }>; //# sourceMappingURL=documentWriteRequestApprove.d.ts.map