/**
 * Copyright 2023 Impulse Innovations Limited
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { LayoutMapping, XYPosition } from 'graphology-layout/utils';
import type { DirectionType, GraphTiers, SimulationGraph, TieredGraphLayoutBuilder } from '../../types';
import { PlanarLayeringAlgorithm } from '../../types';
import type { BaseLayoutParams, LayoutComputationResult } from './common';
import { GraphLayout, GraphLayoutBuilder } from './common';
declare class PlanarLayoutBuilder extends GraphLayoutBuilder<PlanarLayout> {
    _orientation: DirectionType;
    _tiers: GraphTiers;
    _layeringAlgorithm: PlanarLayeringAlgorithm;
    /**
     * Sets the nodes orientation
     *
     * @param direction vertical or horizontal
     */
    orientation(direction: DirectionType): this;
    /**
     * Sets the tiers for the graph
     *
     * @param tiers the tiers to use
     */
    tiers(tiers: GraphTiers): this;
    /**
     * Sets the layering algorithm to use
     *
     * @param algorithm the layering algorithm to use
     */
    layeringAlgorithm(algorithm: PlanarLayeringAlgorithm): this;
    build(): PlanarLayout;
}
export interface PlanarLayoutParams extends BaseLayoutParams {
    orientation: DirectionType;
    tiers: GraphTiers;
    layeringAlgorithm: PlanarLayeringAlgorithm;
}
/**
 * The Planar layout utilises the sugiyama algorithm to lay out nodes in a way that minimises
 * edge crossings.
 */
export default class PlanarLayout extends GraphLayout<PlanarLayoutParams> implements TieredGraphLayoutBuilder {
    orientation: DirectionType;
    tiers: GraphTiers;
    layeringAlgorithm: PlanarLayeringAlgorithm;
    constructor(builder: PlanarLayoutBuilder);
    get supportsDrag(): boolean;
    applyLayout(graph: SimulationGraph, forceUpdate?: (layout: LayoutMapping<XYPosition>, edgePoints: LayoutMapping<XYPosition[]>) => void): Promise<LayoutComputationResult>;
    get name(): string;
    static get Builder(): PlanarLayoutBuilder;
    toLayoutParams(): PlanarLayoutParams;
}
export {};
//# sourceMappingURL=planar-layout.d.ts.map