import { Editor } from '../../core/Editor.js'; import { PartId, PartOperation } from '../../core/parts/types.js'; type SandboxConverter = { convertedXml: Record; removedCustomXmlPaths?: Set; bibliographyPart?: unknown; }; export type PreparedCustomXmlPartMutation = { result: TResult; operations: PartOperation[]; affectedParts: PartId[]; removedCustomXmlPaths?: Set; bibliographyPart?: unknown; hasBibliographyPart: boolean; }; export type CustomXmlPartMutationOptions = { source: string; expectedRevision?: string; }; export declare function prepareCustomXmlPartMutation(editor: Editor, mutate: (convertedXml: Record, converter: SandboxConverter) => TResult, source?: string): PreparedCustomXmlPartMutation; export declare function commitPreparedCustomXmlPartMutation(editor: Editor, prepared: PreparedCustomXmlPartMutation, options: CustomXmlPartMutationOptions): TResult; export declare function mutateCustomXmlParts(editor: Editor, source: string, mutate: (convertedXml: Record, converter: SandboxConverter) => TResult, options?: { expectedRevision?: string; }): TResult; export {}; //# sourceMappingURL=custom-xml-part-mutation.d.ts.map