import { AbstractWrapper, WrapperClass } from '../../core/Tree/Wrapper.js'; import { PropertyList } from '../../core/Tree/Node.js'; import { MmlNode, TextNode } from '../../core/MmlTree/MmlNode.js'; import { Property } from '../../core/Tree/Node.js'; import { Styles } from '../../util/Styles.js'; import { StyleList } from '../../util/StyleList.js'; import { CommonOutputJax } from './OutputJax.js'; import { CommonWrapperFactory } from './WrapperFactory.js'; import { BBox } from '../../util/BBox.js'; import { FontData, DelimiterData, CharData, CharOptions, DIRECTION } from './FontData.js'; export declare type StringMap = { [key: string]: string; }; export declare type Constructor = new (...args: any[]) => T; export declare type AnyWrapper = CommonWrapper; export declare type AnyWrapperClass = CommonWrapperClass; export declare type WrapperConstructor = Constructor; export interface CommonWrapperClass, FD, any>, W extends CommonWrapper, C extends CommonWrapperClass, CC extends CharOptions, DD extends DelimiterData, FD extends FontData> extends WrapperClass> { new (factory: CommonWrapperFactory, node: MmlNode, ...args: any[]): W; } export declare class CommonWrapper, FD, any>, W extends CommonWrapper, C extends CommonWrapperClass, CC extends CharOptions, DD extends DelimiterData, FD extends FontData> extends AbstractWrapper> { static kind: string; static styles: StyleList; static removeStyles: string[]; static skipAttributes: { [name: string]: boolean; }; static BOLDVARIANTS: { [name: string]: StringMap; }; static ITALICVARIANTS: { [name: string]: StringMap; }; protected factory: CommonWrapperFactory; parent: W; childNodes: W[]; protected removedStyles: StringMap; protected styles: Styles; variant: string; bbox: BBox; protected bboxComputed: boolean; stretch: DD; font: FD; get jax(): J; get adaptor(): import("../../core/DOMAdaptor.js").DOMAdaptor; get metrics(): import("../../core/MathItem.js").Metrics; get fixesPWidth(): boolean; constructor(factory: CommonWrapperFactory, node: MmlNode, parent?: W); wrap(node: MmlNode, parent?: W): W; getBBox(save?: boolean): BBox; getOuterBBox(save?: boolean): BBox; protected computeBBox(bbox: BBox, recompute?: boolean): void; setChildPWidths(recompute: boolean, w?: (number | null), clear?: boolean): boolean; invalidateBBox(): void; protected copySkewIC(bbox: BBox): void; protected getStyles(): void; protected getVariant(): void; protected explicitVariant(fontFamily: string, fontWeight: string, fontStyle: string): string; protected getScale(): void; protected getSpace(): void; protected getMathMLSpacing(): void; protected getTeXSpacing(isTop: boolean, hasSpacing: boolean): void; protected isTopEmbellished(): boolean; core(): CommonWrapper; coreMO(): CommonWrapper; getText(): string; canStretch(direction: DIRECTION): boolean; protected getAlignShift(): [string, number]; protected getAlignX(W: number, bbox: BBox, align: string): number; protected getAlignY(H: number, D: number, h: number, d: number, align: string): number; getWrapWidth(i: number): number; getChildAlign(_i: number): string; protected percent(m: number): string; protected em(m: number): string; protected px(m: number, M?: number): string; protected length2em(length: Property, size?: number, scale?: number): number; protected unicodeChars(text: string, name?: string): number[]; remapChars(chars: number[]): number[]; mmlText(text: string): TextNode; mmlNode(kind: string, properties?: PropertyList, children?: MmlNode[]): MmlNode; protected createMo(text: string): CommonWrapper; protected getVariantChar(variant: string, n: number): CharData; }