/**
 * Shared utilities for hierarchy layout plugins.
 *
 * CSS color parsing, contrast text, depth palette, and accessor resolution
 * used across tree, treemap, and circlepack scene builders.
 *
 * Consumed by: hierarchyLayoutPlugin.ts, hierarchySceneBuilders.ts
 */
import type { NetworkPipelineConfig } from "../networkTypes";
import type { Datum } from "../../charts/shared/datumTypes";
/** Depth-based color palette shared across all hierarchy scene builders */
export declare const DEPTH_PALETTE: string[];
/**
 * Parse a CSS color string (hex or rgb/rgba) into [r, g, b].
 * Falls back to mid-gray if the format is unrecognized.
 */
export declare function parseColor(color: string): [number, number, number];
/**
 * Return a high-contrast text color (white or near-black) for the given background.
 * Uses perceived luminance (ITU-R BT.601).
 */
export declare function contrastTextColor(bgColor: string): string;
export declare function resolveChildrenAccessor(accessor: string | ((d: Datum) => any[]) | undefined): ((d: Datum) => any[]) | undefined;
export declare function resolveNodeId(d: any, config: NetworkPipelineConfig, index: number): string;
export declare function resolveLabelFn(nodeLabel: string | ((d: Datum) => string) | undefined): ((d: Datum) => string) | null;
export declare function resolveDefaultNodeSize(nodeSize: number | string | ((d: Datum) => number) | undefined): number;
