import type { GeoJsonFeature } from "@trackunit/geo-json-utils"; import type { ShapeLayerHandle } from "../../types"; import { type ResolvedDecoration } from "../shapeDecorations"; import { type EdgeInsets } from "./findBestEdgePosition"; /** * Compute per-edge insets from pre-resolved decorations. * * For each edge, the start inset is the maximum `radiusPx` of any * decoration anchored at the start vertex, and the end inset is the * maximum `radiusPx` at the end vertex. This tells the label system * how much to inset from each corner to avoid overlapping decorations. * * Accepts already-resolved decorations so the caller (the unified hook) * can resolve once and reuse the results for both rendering and insets. * * @param resolved - Decorations whose anchors have already been resolved to positions. * @param edgeCount - Number of edges in the feature's geometry (as returned by `extractEdges`). */ export declare const computeEdgeInsetsFromResolved: (resolved: ReadonlyArray, edgeCount: number) => ReadonlyArray | undefined; /** * Compute per-edge insets for a single feature based on its decorations. * * Convenience wrapper that resolves decoration anchors internally. * Prefer `computeEdgeInsetsFromResolved` when decorations have already * been resolved (e.g. in the unified hook) to avoid redundant resolution. */ export declare const computeEdgeInsetsForFeature: (feature: GeoJsonFeature, handle: ShapeLayerHandle) => ReadonlyArray | undefined;