import type { NodeDefinition, NodeHandlePosition, NodeInstance, NodeShapeKind, NodeShapeStyle } from "./types"; export interface ShapePoint { x: number; y: number; } export interface NodeVisualSize { width: number; height: number; } export interface NodeShapePreset extends NodeVisualSize { kind: NodeShapeKind; label: string; minWidth: number; minHeight: number; } export declare const nodeShapeKinds: readonly NodeShapeKind[]; export declare const nodeShapePresets: Readonly>; export declare function getNodeShapePath(kind: NodeShapeKind): string; export declare function getNodeShapeDecorationPaths(kind: NodeShapeKind): readonly string[]; export declare function getNodeShape(node?: NodeInstance, definition?: NodeDefinition): NodeShapeKind | undefined; /** Returns the higher-contrast foreground for a hexadecimal background color. */ export declare function getReadableTextColor(background?: string, light?: string, dark?: string): string | undefined; export declare function getNodeShapeStyle(node?: NodeInstance, definition?: NodeDefinition): NodeShapeStyle; export declare function getNodeVisualSize(node: NodeInstance, definition?: NodeDefinition): NodeVisualSize; export declare function getNodeShapeBoundaryPoint(kind: NodeShapeKind, position: NodeHandlePosition, offset?: number): ShapePoint; //# sourceMappingURL=nodeShapes.d.ts.map