import { Editor } from '../../../core/Editor.js'; /** * Seed non-document parts from the editor's converter into the Yjs parts map. * * Used for new-room initialization and file replacement. Writes all * non-document parts as versioned envelopes in a single Yjs transaction * alongside the capability marker and schema version. */ import * as Y from 'yjs'; interface SeedOptions { /** When true, delete stale keys from parts map not in the current snapshot. */ replaceExisting?: boolean; } /** * Write non-document parts from `converter.convertedXml` into the Yjs `parts` map. * * - Filters out `word/document.xml` (owned by y-prosemirror). * - `replaceExisting: true` performs an authoritative replace: deletes any * parts map key not present in the current converter snapshot. * - `replaceExisting: false` (default) skips keys that already exist. * - All writes happen in a single `ydoc.transact()`. */ export declare function seedPartsFromEditor(editor: Editor, ydoc: Y.Doc, options?: SeedOptions): void; export {}; //# sourceMappingURL=seed-parts.d.ts.map