export declare class LexDist {
    private dist;
    constructor(dist: number[]);
    isNegative(): boolean;
    smallerThan(other: LexDist): boolean;
    /**
     * "b - a"
     */
    static fromDifference(a: string, b: string): LexDist;
    normalize(): LexDist;
}
export declare function findLexClosestIndex<T>(id: string, units: T[], mapping: (unit: T) => string): [index: number, before: boolean];
