import { ContentTypesXml } from '../../mod.js'; import { Archive } from '../classes/Archive.js'; import { XmlFileWithContentTypes } from '../classes/XmlFile.js'; import { Paragraph } from '../components/Paragraph.js'; import { FileMime } from '../enums.js'; declare type Comment = { id: number; author: string; initials: string; date: Date; contents: Paragraph[] | Promise; }; export declare class CommentsXml extends XmlFileWithContentTypes { #private; static contentType: FileMime; isEmpty(): boolean; protected toNode(): Promise; /** * Add a comment to the DOCX file and return its new identifier. You should reference this * identifier from the document using the {@link Comment}, {@link CommentRangeStart} and * {@link CommentRangeEnd} components. */ add(meta: Omit, contents: Comment['contents']): number; /** * Check whether or not a comment with the given identifier already exists. */ has(id: number): boolean; /** * Instantiate this class by looking at the DOCX XML for it. */ static fromArchive(archive: Archive, contentTypes: ContentTypesXml, location: string): Promise; } export {};