import { StringAccessor } from '../types/accessor'; import { LengthUnit, Rect } from '../types/misc'; export declare function guid(): string; export declare function stringToHtmlId(str: string): string; export declare function isStringCSSVariable(s: string): boolean; export declare function getCSSVariableValue(s: string, context: HTMLElement | SVGElement): string; export declare function getCSSVariableValueInPixels(s: string, context: HTMLElement | SVGElement): number; export declare function getPixelValue(v: string | number): number | null; /** Returns the axis-aligned bounding box of `rect` rotated by `angleRad` around the origin */ export declare function getRotatedRectAabb(rect: Rect, angleRad: number): Rect; /** Returns the translation needed to fit `rect` into `bounds`. * When the rect is larger than the bounds, fitting its top left corner takes priority. */ export declare function getRectFitTranslation(rect: Rect, bounds: Rect): { dx: number; dy: number; }; export declare function rectIntersect(rect1: Rect, rect2: Rect, tolerancePx?: number): boolean; export declare function getHref(d: T, identifier: StringAccessor): string; export declare function parseUnit(value: LengthUnit, basis?: number): number;