import type { Data } from "@ot-builder/prelude";
import type * as LayoutCommon from "../../common";
import type { DicingStore } from "../../dicing-store";
export interface LookupPropT<G> {
    rightToLeft?: boolean;
    ignoreGlyphs?: Data.Maybe<Set<G>>;
}
export interface GsubSinglePropT<G, X> extends LookupPropT<G> {
    mapping: Map<G, G>;
}
export interface GsubMultipleAlternatePropT<G, X> extends LookupPropT<G> {
    mapping: Map<G, ReadonlyArray<G>>;
}
export type GsubLigatureLookupEntryT<G> = {
    readonly from: ReadonlyArray<G>;
    readonly to: G;
};
export interface GsubLigaturePropT<G, X> extends LookupPropT<G> {
    mapping: Array<GsubLigatureLookupEntryT<G>>;
}
export interface GsubReverseRuleT<G, GS> {
    match: Array<GS>;
    doSubAt: number;
    replacement: Map<G, G>;
}
export interface GsubReverseSingleSubPropT<G, X> extends LookupPropT<G> {
    rules: GsubReverseRuleT<G, Set<G>>[];
}
export interface GposSinglePropT<G, X> extends LookupPropT<G> {
    adjustments: Map<G, LayoutCommon.Adjust.T<X>>;
}
export interface GposPairPropT<G, X> extends LookupPropT<G> {
    adjustments: DicingStore<G, G, LayoutCommon.Adjust.PairT<X>>;
}
export interface GposCursivePropT<G, X> extends LookupPropT<G> {
    attachments: Map<G, LayoutCommon.CursiveAnchorPair.T<X>>;
}
export interface GposMarkRecordT<X> {
    markAnchors: Array<Data.Maybe<LayoutCommon.Anchor.T<X>>>;
}
export interface GposBaseRecordT<X> {
    baseAnchors: Array<Data.Maybe<LayoutCommon.Anchor.T<X>>>;
}
export interface GposLigatureBaseRecordT<X> {
    baseAnchors: Array<Array<Data.Maybe<LayoutCommon.Anchor.T<X>>>>;
}
export interface GposMarkToBasePropT<G, X> extends LookupPropT<G> {
    marks: Map<G, GposMarkRecordT<X>>;
    bases: Map<G, GposBaseRecordT<X>>;
}
export interface GposMarkToMarkPropT<G, X> extends LookupPropT<G> {
    marks: Map<G, GposMarkRecordT<X>>;
    baseMarks: Map<G, GposBaseRecordT<X>>;
}
export interface GposMarkToLigaturePropT<G, X> extends LookupPropT<G> {
    marks: Map<G, GposMarkRecordT<X>>;
    bases: Map<G, GposLigatureBaseRecordT<X>>;
}
export interface ChainingApplicationT<L> {
    at: number;
    apply: L;
}
export interface ChainingRuleT<GS, L> {
    match: Array<GS>;
    inputBegins: number;
    inputEnds: number;
    applications: Array<ChainingApplicationT<L>>;
}
export interface ForwardChainingPropT<G, X, L> extends LookupPropT<G> {
    rules: ChainingRuleT<Set<G>, L>[];
}
//# sourceMappingURL=lookup.d.ts.map