import { type ParagraphChild } from "docx"; import type { AnyNode, Element } from "domhandler"; import { isBlockElement, typographyFromBlockElement } from "./css.js"; import type { StyleResolver } from "./style-resolver.js"; import { type InlineFieldOptions } from "./fields.js"; import type { RunTypography } from "./types.js"; export declare function typographyToTextRunOptions(style: RunTypography, defaultSize?: number): Record; interface InlineRunState { leadingTextDone: boolean; needsSpaceBeforeNext: boolean; /** After `
` — trim HTML source indentation on the next line. */ afterLineBreak: boolean; /** Previous text run explicitly cancelled underline (e.g. `text-decoration:none`). */ lastUnderlineCancelled?: boolean; } export declare function collectInlineRunsFromNodes(childNodes: AnyNode[], inherited?: RunTypography, state?: InlineRunState, styleResolver?: StyleResolver, defaultSize?: number, fieldOptions?: InlineFieldOptions): ParagraphChild[]; /** AT_LEAST line twips when a paragraph mixes super and sub (browser expands the line box). */ export declare function atLeastLineTwipsForSuperSubInline(childNodes: AnyNode[], defaultSizeHalfPoints?: number, styleResolver?: StyleResolver): number | undefined; export declare function hasDirectBlockChild(element: Element, styleResolver?: StyleResolver): boolean; export declare function getDirectBlockChildren(element: Element, styleResolver?: StyleResolver): Element[]; export declare function getInlineOrTextNodes(element: Element, styleResolver?: StyleResolver): AnyNode[]; export { isBlockElement, typographyFromBlockElement }; //# sourceMappingURL=inline.d.ts.map