import type { Sides } from './layout'; type Pt = { x: number; y: number; }; type Size = { width: number; height: number; }; export declare const placed_coords: (auto_outside: boolean, outside: Pt, placement: Pt | null, tweened: Pt, fallback: Pt) => Pt; export declare const has_explicit_position: (style?: string | null) => boolean; export declare const measured_footprint: (el: HTMLElement | null | undefined, fallback: Size) => Size; export declare function build_obstacles_norm(series: { points: Pt[]; draws_line?: boolean; }[], base_w: number, base_h: number): Pt[]; export declare function clip_bar(vertical: boolean, cross: number, a: number, b: number): { points: Pt[]; draws_line: boolean; } | null; export type DecorationInput = { footprint: Size; clearance?: number; }; export type DecorationLayout = { pad: Required; legend_outside: boolean; legend_pos: Pt; colorbar_outside: boolean; colorbar_style: string; }; export declare function place_decorations(cfg: { base_pad: Required; width: number; height: number; obstacles_norm: Pt[]; legend?: DecorationInput | null; colorbar?: (DecorationInput & { horizontal?: boolean; }) | null; gap?: number; }): DecorationLayout; export {};