import type { ImageTree, ImagePath, ImageRegion, SizeEnvelope } from '@tracespace/plotter'; import type { SvgElement, ViewBox } from '@tracespace/renderer'; import type { Layer } from '..'; export declare const MISSING_OUTLINE_LAYER = "missingOutlineLayer"; export declare const NO_PATHS_IN_OUTLINE_LAYER = "noPathsInOutlineLayer"; export declare const NO_CLOSED_REGIONS_FOUND = "noClosedRegionsFound"; export interface BoardShape { size: SizeEnvelope; regions: ImageRegion[]; openPaths: ImagePath[]; failureReason?: BoardShapeFailureReason; } export interface BoardShapeRender { viewBox: ViewBox; path?: SvgElement; failureReason?: BoardShapeFailureReason; } export type BoardShapeFailureReason = typeof MISSING_OUTLINE_LAYER | typeof NO_PATHS_IN_OUTLINE_LAYER | typeof NO_CLOSED_REGIONS_FOUND; export declare function plotBoardShape(layers: Layer[], plotTreesById: Record, maximumGap: number): BoardShape; export declare function renderBoardShape(boardShape: BoardShape): BoardShapeRender;