## 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 { Node as Node_2 } from 'prosemirror-model';

// @public
export interface a {
    // (undocumented)
    block: FlowBlock;
    // (undocumented)
    measure: Measure;
    // (undocumented)
    version?: string;
}

// @public
export function applyPageStyles(element: HTMLElement, width: number, height: number, options: RenderPageOptions): void;

// @public
export type B = Map<string, a>;

// @public
export const b: readonly e[];

// @public (undocumented)
export interface c {
    imageEl: HTMLElement;
    pos: number;
}

// @public
export type d = 'inline' | 'squareLeft' | 'squareRight' | 'behind' | 'inFront';

// @public (undocumented)
export interface e {
    choice: ImageLayoutTarget;
    i18nDescKey: string;
    i18nLabelKey: string;
    iconHint: d;
}

// @public
export const F: {
    fragment: string;
    paragraph: string;
    table: string;
    image: string;
    line: string;
    run: string;
};

// @public
export class f {
    constructor(options?: P);
    getPageCount(): number;
    getPageElement(index: number): HTMLElement | null;
    mount(container: HTMLElement): void;
    paint(layout: Layout): void;
    // (undocumented)
    resolvedCommentIds: Set<number>;
    scrollToPage(pageNumber: number): void;
    setBlockLookup(lookup: B): void;
    unmount(): void;
}

// @public (undocumented)
export function floatingImageIsBehindDoc(img: {
    wrapType?: string;
}): boolean;

// @public
export interface FloatingImagePaintRecord {
    // (undocumented)
    alt?: string;
    // (undocumented)
    cropBottom?: number;
    // (undocumented)
    cropLeft?: number;
    // (undocumented)
    cropRight?: number;
    cropTop?: number;
    // (undocumented)
    height: number;
    opacity?: number;
    // (undocumented)
    pmEnd?: number;
    // (undocumented)
    pmStart?: number;
    // (undocumented)
    src: string;
    // (undocumented)
    transform?: string;
    // (undocumented)
    width: number;
    // (undocumented)
    x: number;
    // (undocumented)
    y: number;
}

// @public (undocumented)
export interface FloatingImagesLayerOptions {
    // (undocumented)
    itemClass: string;
    // (undocumented)
    layerClass: string;
    layerMode: 'front' | 'behind';
    sizing: 'inset0' | 'fullSize';
}

// @public
export function floatingImageWrapsText(img: {
    wrapType?: string;
}): boolean;

// @public
export interface FootnoteRenderItem {
    content?: FootnoteContent;
    displayNumber: string;
    text: string;
}

// @public
export const g: {
    textBox: string;
};

// @public
export function h(container: HTMLElement, focusedIds: Set<string>): void;

// @public
export interface HeaderFooterContent {
    blocks: FlowBlock[];
    flowHeight?: number;
    height: number;
    measures: Measure[];
    visualBottom?: number;
    visualTop?: number;
}

// @public (undocumented)
export interface HeaderFooterLayoutInfo {
    // (undocumented)
    contentWidth: number;
    // (undocumented)
    flowLeft: number;
    // (undocumented)
    flowTop: number;
    // (undocumented)
    margins: {
        top: number;
        right: number;
        bottom: number;
        left: number;
    };
    // (undocumented)
    pageHeight: number;
    // (undocumented)
    pageWidth: number;
}

// @public
export const I: {
    image: string;
    imageAnchored: string;
};

// @public
export function i(blocks: FlowBlock[], measures: Measure[]): B;

// @public
export function isFloatingImageRun(run: ImageRun): boolean;

// @public
export function isTextWrappingFloatingImageRun(run: ImageRun): boolean;

// @public
export function j(imageEl: HTMLElement, zoom?: number): {
    horizontalEmu: number;
    verticalEmu: number;
} | undefined;

// @public
export function k(options?: P): f;

// @public
export const L: {
    readonly runImage: "layout-run-image";
    readonly blockImage: "layout-block-image";
    readonly pageFloatingImage: "layout-page-floating-image";
    readonly cellFloatingImage: "layout-cell-floating-image";
    readonly pageContent: "layout-page-content";
    readonly paragraph: "layout-paragraph";
};

// @public
export function l(wrapType: WrapType, cssFloat?: ImageAttrs['cssFloat'] | null): ImageLayoutTarget | null;

// @public
export function m(doc: Node_2, from: number, to: number): Set<string>;

// @public
export function n(target: EventTarget | null): HTMLElement | null;

// @public
export function o(target: EventTarget | null): c | null;

// @public
export interface P {
    containerBackground?: string;
    document?: Document;
    pageBackground?: string;
    pageGap?: number;
    showShadow?: boolean;
}

// @public
export function p(_option: e, _currentWrapType: WrapType): boolean;

// @public
export const PAGE_CLASS_NAMES: {
    page: string;
    content: string;
    header: string;
    footer: string;
};

// @public
export function q(fragment: ImageFragment, block: ImageBlock, _measure: ImageMeasure, _context: RenderContext, options?: RenderImageFragmentOptions): HTMLElement;

// @public
export function r(fragment: Fragment, context: RenderContext, options?: RenderFragmentOptions): HTMLElement;

// @public
export function renderAllPagesNow(container: HTMLElement): number;

// @public
export interface RenderContext {
    contentWidth?: number;
    insideTableCell?: boolean;
    pageNumber: number;
    positioning?: 'absolute' | 'flow';
    resolvedCommentIds?: Set<number>;
    section: 'body' | 'header' | 'footer';
    totalPages: number;
}

// @public
export function renderFloatingImagesLayer(floatingImages: FloatingImagePaintRecord[], doc: Document, options: FloatingImagesLayerOptions): HTMLElement;

// @public
export function renderPage(page: Page, context: RenderContext, options?: RenderPageOptions): HTMLElement;

// @public
export interface RenderPageOptions {
    backgroundColor?: string;
    blockLookup?: B;
    document?: Document;
    firstPageFooterContent?: HeaderFooterContent;
    firstPageHeaderContent?: HeaderFooterContent;
    footerContent?: HeaderFooterContent;
    footerDistance?: number;
    footnoteArea?: FootnoteRenderItem[];
    headerContent?: HeaderFooterContent;
    headerDistance?: number;
    pageBorders?: {
        top?: BorderSpec;
        bottom?: BorderSpec;
        left?: BorderSpec;
        right?: BorderSpec;
        display?: 'allPages' | 'firstPage' | 'notFirstPage';
        offsetFrom?: 'page' | 'text';
        zOrder?: 'front' | 'back';
    };
    pageClassName?: string;
    resolvedCommentIds?: Set<number>;
    showBorders?: boolean;
    showShadow?: boolean;
    theme?: Theme | null;
    titlePg?: boolean;
    watermark?: Watermark;
}

// @public
export function renderPages(pages: Page[], container: HTMLElement, options?: RenderPageOptions & {
    pageGap?: number;
    footnotesByPage?: Map<number, FootnoteRenderItem[]>;
}): RenderPagesUpdateKind;

// @public
export type RenderPagesUpdateKind = 'incremental' | 'full';

// @public
export function resolveHeaderFooterFloatingTablePosition(floating: NonNullable<TableBlock['floating']>, layout: HeaderFooterLayoutInfo): {
    left: number;
    top: number;
};

// @public
export function resolveHeaderFooterFloatLeft(width: number, h: {
    relativeTo?: string;
    posOffset?: number;
    align?: string;
    alignment?: string;
} | undefined, layout: HeaderFooterLayoutInfo): string;

// @public
export function s(block: ParagraphBlock, line: MeasuredLine, alignment: 'left' | 'center' | 'right' | 'justify' | undefined, doc: Document, options?: RenderLineOptions): HTMLElement;

// @public
export const T: {
    table: string;
    row: string;
    cell: string;
    cellContent: string;
    resizeHandle: string;
    rowResizeHandle: string;
    tableEdgeHandleBottom: string;
    tableEdgeHandleRight: string;
};

// @public
export function t(fragment: ParagraphFragment, block: ParagraphBlock, measure: ParagraphMeasure, context: RenderContext, options?: RenderParagraphOptions): HTMLElement;

// @public
export function u(fragment: TableFragment, block: TableBlock, measure: TableMeasure, context: RenderContext, options?: RenderTableFragmentOptions): HTMLElement;

// @public
export function v(fragment: TextBoxFragment, block: TextBoxBlock, measure: TextBoxMeasure, context: RenderContext, options?: RenderTextBoxFragmentOptions): HTMLElement;

// @public
export function w(block: ParagraphBlock, line: MeasuredLine): Run[];

// @public
export function x(value: string): ImageLayoutTarget | undefined;

```
