import type { Way } from "./way";
export declare class WayCollection extends Array {
    private firstMap;
    private lastMap;
    constructor();
    addWay(way: Way): void;
    mergeWays(): number[][][];
    /**
     * Try to find the next way to add to the current way.
     * It first tries the next way in the array, and if this doesn't work, try any other way.
     */
    private getNextWay;
    toRings(direction: string): number[][][];
}
