import type { LayoutEngine, LayoutGraph } from './types.js';
export declare const TURN_BREAKPOINT = 640;
export declare const MAX_MIN_LEN = 1000;
/** The spacing keys of a diagram's resolved config (flowchart: `nodeSpacing`, …). */
export interface SpacingConfig {
    nodeSpacing?: number;
    rankSpacing?: number;
    diagramPadding?: number;
}
/** v12's defaults (R-LAYOUT-6). v12 sets no edge spacing, so dagre's 20 applies. */
export declare const V12_SPACING: {
    readonly nodeSpacing: 50;
    readonly rankSpacing: 50;
    readonly edgeSpacing: 20;
    readonly diagramPadding: 8;
};
/** The LayoutGraph spacing fields for a diagram's resolved config, with v12 defaults. */
export declare function layoutSettings(config?: SpacingConfig): {
    spacing: LayoutGraph['spacing'];
    diagramPadding: number;
};
export declare const layered: LayoutEngine;
