import { AlphaImage } from '../util/image';
import type { GlyphMetrics, StyleGlyph } from '../style/style_glyph';
export declare type Rect = {
    x: number;
    y: number;
    w: number;
    h: number;
};
export declare type GlyphPosition = {
    rect: Rect;
    metrics: GlyphMetrics;
};
export declare type GlyphPositions = {
    [_: string]: {
        [_: number]: GlyphPosition;
    };
};
export default class GlyphAtlas {
    image: AlphaImage;
    positions: GlyphPositions;
    constructor(stacks: {
        [_: string]: {
            [_: number]: StyleGlyph | undefined | null;
        };
    });
}
//# sourceMappingURL=glyph_atlas.d.ts.map