import { type DataWriter } from '../data-writer.ts'; import { TableBuilder } from '../table-builder.ts'; import { type HheaTable } from '../tables/hhea.ts'; import { type MaxpTable } from '../tables/maxp.ts'; /** * Represents the horizontal metrics for a single glyph. */ export type HorMetric = { /** The advance width for the glyph. */ readonly advanceWidth: number; /** The left side bearing for the glyph. */ readonly leftSideBearing: number; }; /** * The 'hmtx' (Horizontal Metrics) table contains the horizontal metrics for each glyph in the font. */ export declare class HmtxTable { readonly hMetrics: ReadonlyArray; readonly leftSideBearings?: ReadonlyArray; /** * Reads a 'hmtx' table from the given DataView. */ static read(data: DataView, hhea: HheaTable, maxp: MaxpTable): HmtxTable; private constructor(); } /** * Builder for the 'hmtx' table. */ export declare class HmtxTableBuilder extends TableBuilder { hMetrics: HorMetric[]; leftSideBearings: number[]; /** * Creates a HmtxTableBuilder for the given HmtxTable. */ static forTable(hmtx: HmtxTable): HmtxTableBuilder; constructor(hmtx?: HmtxTable); writeTable(writer: DataWriter): void; }