import { RunProperties, ParagraphProperties } from '../../../../../../../../layout-engine/style-engine/src/ooxml/index.js';
import { FlowBlock, SdtMetadata, TextRun, ParagraphAttrs } from '../../../../../../../../layout-engine/contracts/src/index.js';
import { HyperlinkConfig, NodeHandlerContext, PMMark, PMNode, PositionMap, ThemeColorPalette, BlockIdGenerator, Position } from '../../types.js';
import { ConverterContext } from '../../converter-context.js';
type VisitNodeFn = (node: PMNode, inheritedMarks: PMMark[], activeSdt: SdtMetadata | undefined, activeRunProperties: RunProperties | undefined, activeHidden?: boolean, activeInlineRunProperties?: RunProperties) => void;
export declare class HiddenByVanishError extends Error {
    constructor();
}
export declare class NotInlineNodeError extends Error {
    constructor();
}
export type InlineConverterParams = {
    node: PMNode;
    positions: PositionMap;
    storyKey?: string;
    inheritedMarks: PMMark[];
    defaultFont: string;
    defaultSize: number;
    sdtMetadata: SdtMetadata | undefined;
    hyperlinkConfig: HyperlinkConfig;
    themeColors: ThemeColorPalette | undefined;
    runProperties: RunProperties | undefined;
    /**
     * The raw inline w:rPr from the run wrapper, BEFORE the style cascade. Used by
     * preservation-only metadata (TextRun.bidi / TextRun.script in SD-2781) so
     * style-inherited values don't surface as if they were direct formatting.
     * Undefined for callers outside a run wrapper.
     */
    inlineRunProperties: RunProperties | undefined;
    paragraphProperties: ParagraphProperties | undefined;
    converterContext: ConverterContext;
    enableComments: boolean;
    visitNode: VisitNodeFn;
    bookmarks: Map<string, number> | undefined;
    tabOrdinal: number;
    paragraphAttrs: ParagraphAttrs;
    nextBlockId: BlockIdGenerator;
};
export type BlockConverterOptions = {
    blocks: FlowBlock[];
    nextBlockId: BlockIdGenerator;
    nextId: () => string;
    positions: WeakMap<PMNode, Position>;
    storyKey?: string;
    trackedChangesConfig: NodeHandlerContext['trackedChangesConfig'];
    defaultFont: string;
    defaultSize: number;
    converterContext: ConverterContext;
    hyperlinkConfig: NodeHandlerContext['hyperlinkConfig'];
    enableComments: boolean;
    bookmarks: Map<string, number>;
    converters: NodeHandlerContext['converters'];
    paragraphAttrs: ParagraphAttrs;
};
export declare const applyInlineRunProperties: (run: TextRun, runProperties: RunProperties | undefined, converterContext?: ConverterContext, inlineRunProperties?: RunProperties) => TextRun;
export {};
//# sourceMappingURL=common.d.ts.map