import { n as Color } from "./color-AELCDH_b.cjs"; //#region src/math-layout.d.ts type MathColor = Color; interface MathGlyphRun { readonly kind: "glyphs"; readonly xPt: number; readonly yPt: number; readonly text: string; readonly sizePt: number; readonly color: MathColor; } interface MathRule { readonly kind: "rule"; readonly xPt: number; readonly yPt: number; readonly widthPt: number; readonly heightPt: number; readonly color: MathColor; } interface MathStroke { readonly kind: "stroke"; readonly points: readonly { readonly xPt: number; readonly yPt: number; }[]; readonly widthPt: number; readonly color: MathColor; } interface MathGlyphPlacement { readonly glyphId: number; readonly xPt: number; readonly yPt: number; } interface MathAssembledGlyphs { readonly kind: "assembled-glyphs"; readonly placements: readonly MathGlyphPlacement[]; readonly text: string; readonly sizePt: number; readonly color: MathColor; } type MathLayoutItem = MathGlyphRun | MathRule | MathStroke | MathAssembledGlyphs; interface MathBox { readonly widthPt: number; readonly heightPt: number; readonly ascentPt: number; readonly descentPt: number; readonly items: readonly MathLayoutItem[]; } interface MathGlyphMetrics { readonly advanceWidthPt: number; readonly italicCorrectionPt: number; readonly topAccentXPt?: number; readonly inkAscentPt?: number; readonly inkDescentPt?: number; } type MathStretchAxis = "vertical" | "horizontal"; interface MathStretchGlyph { readonly glyphId: number; readonly offsetPt: number; } interface MathStretchResult { readonly kind: "base" | "variant" | "assembly"; readonly sizePt: number; readonly advanceWidthPt: number; readonly inkAscentPt: number; readonly inkDescentPt: number; readonly placements: readonly MathStretchGlyph[]; } interface MathFontMetrics { readonly ascentPerEm: number; readonly descentPerEm: number; readonly axisHeightPt: number; readonly fractionRuleThicknessPt: number; readonly fractionNumeratorShiftUpPt: number; readonly fractionNumeratorDisplayShiftUpPt: number; readonly fractionDenominatorShiftDownPt: number; readonly fractionDenominatorDisplayShiftDownPt: number; readonly fractionNumeratorGapMinPt: number; readonly fractionDenominatorGapMinPt: number; readonly radicalRuleThicknessPt: number; readonly radicalExtraAscenderPt: number; readonly radicalVerticalGapPt: number; readonly radicalKernBeforeDegreePt: number; readonly radicalKernAfterDegreePt: number; readonly radicalDegreeBottomRaisePercent: number; readonly subscriptShiftDownPt: number; readonly superscriptShiftUpPt: number; readonly superscriptShiftUpCrampedPt: number; readonly subSuperscriptGapMinPt: number; readonly superscriptBaselineDropMaxPt: number; readonly subscriptBaselineDropMinPt: number; readonly spaceAfterScriptPt: number; readonly upperLimitGapMinPt: number; readonly upperLimitBaselineRiseMinPt: number; readonly lowerLimitGapMinPt: number; readonly lowerLimitBaselineDropMinPt: number; readonly stackTopShiftUpPt: number; readonly stackBottomShiftDownPt: number; readonly stackGapMinPt: number; readonly scriptPercentScaleDown: number; readonly scriptScriptPercentScaleDown: number; readonly defaultRuleThicknessPt: number; glyph(codePoint: number, sizePt: number): MathGlyphMetrics | undefined; stretch(codePoint: number, axis: MathStretchAxis, targetSizePt: number, sizePt: number): MathStretchResult | undefined; } interface PositionedFormula { readonly pageIndex: number; readonly xPt: number; readonly yPt: number; readonly box: MathBox; } //#endregion export { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula };