import type { DualDocument, DocumentQuery, DbOperation } from './types.ts'; /** * Clears the draft version of a document, reverting to the published version * * This function: * - Finds the document by id or path * - Deletes the draft record if it exists * - Sets draft_record_id to NULL * - Returns the document with only the current version * * @param client Database client * @param query Query to find the document (by id or path) * @returns DualDocument with only the current version * @throws Error if document not found */ export declare const clearDraft: DbOperation<[DocumentQuery], DualDocument>; //# sourceMappingURL=clearDraft.d.ts.map