import { SeqStream } from "bytestreamjs";
import { FontTable } from "../Table";
export declare enum LOCAFormat {
    short = 0,
    long = 1
}
export interface LOCAParameters {
    /**
     * The actual local offset divided by 2 is stored. The value of n is numGlyphs + 1. The value for numGlyphs is found in the 'maxp' table
     */
    offsets?: number[];
    indexToLocFormat?: LOCAFormat;
}
/**
 * Represents LOCA table
 * @see https://docs.microsoft.com/en-us/typography/opentype/spec/loca
 */
export declare class LOCA extends FontTable {
    /**
     * The actual local offset divided by 2 is stored. The value of n is numGlyphs + 1. The value for numGlyphs is found in the 'maxp' table
     */
    offsets: number[];
    /**
     * Format of the offset values
     */
    indexToLocFormat: LOCAFormat;
    constructor(parameters?: LOCAParameters);
    static get tag(): number;
    toStream(stream: SeqStream): boolean;
    /**
     * Convert SeqStream data to object
     * @param stream
     * @param indexToLocFormat Value from 'head' table
     * @param numGlyphs Value from 'maxp' table
     */
    static fromStream(stream: SeqStream, indexToLocFormat: LOCAFormat, numGlyphs: number): LOCA;
}
