## API Report File for "@eigenpal/docx-editor-core"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import JSZip from 'jszip';

// @public
export function addMedia(originalBuffer: ArrayBuffer, filename: string, data: ArrayBuffer, mimeType: string): Promise<{
    buffer: ArrayBuffer;
    rId: string;
    path: string;
}>;

// @public
export function addRelationship(originalBuffer: ArrayBuffer, relationship: {
    type: string;
    target: string;
    targetMode?: 'External' | 'Internal';
}): Promise<{
    buffer: ArrayBuffer;
    rId: string;
}>;

// @public
export function applyUpdatesToZip(zip: JSZip, updates: Map<string, string | ArrayBuffer>, options?: RepackOptions): Promise<ArrayBuffer>;

// @public
export function collectHeaderFooterUpdates(doc: Document_2): Map<string, string>;

// @public
export const COMMENTS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml";

// @public (undocumented)
export const COMMENTS_EXTENDED_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml";

// @public (undocumented)
export const COMMENTS_EXTENSIBLE_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtensible+xml";

// @public (undocumented)
export const COMMENTS_IDS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml";

// @public
export function createDocx(doc: Document_2): Promise<ArrayBuffer>;

// @public
export function createEmptyDocx(): Promise<ArrayBuffer>;

// @public
export function findMaxRId(relsXml: string): number;

// @public
export function isDocxBuffer(buffer: ArrayBuffer): boolean;

// @public
function repackDocx(doc: Document_2, options?: RepackOptions): Promise<ArrayBuffer>;
export default repackDocx;
export { repackDocx }

// @public
export function repackDocxFromRaw(doc: Document_2, rawContent: RawDocxContent, options?: RepackOptions): Promise<ArrayBuffer>;

// @public
export interface RepackOptions {
    compressionLevel?: number;
    modifiedBy?: string;
    updateModifiedDate?: boolean;
}

// @public
export function updateCoreProperties(corePropsXml: string, options: {
    updateModifiedDate?: boolean;
    modifiedBy?: string;
}): string;

// @public
export function updateDocumentXml(originalBuffer: ArrayBuffer, newDocumentXml: string, options?: RepackOptions): Promise<ArrayBuffer>;

// @public
export function updateMultipleFiles(originalBuffer: ArrayBuffer, updates: Map<string, string | ArrayBuffer>, options?: RepackOptions): Promise<ArrayBuffer>;

// @public
export function updateXmlFile(originalBuffer: ArrayBuffer, path: string, content: string, options?: RepackOptions): Promise<ArrayBuffer>;

// @public
export function validateDocx(buffer: ArrayBuffer): Promise<{
    valid: boolean;
    errors: string[];
    warnings: string[];
}>;

```
