import { PanelSizeUnit, PanelSizesWithUnit, PanelSizes } from '../types/shared-panel-types.js'; export type ParsedValue = { value: number; unit: PanelSizeUnit; }; /** Parse the given value to get the numeric value and unit. */ export declare function parseValue(value: string | number | undefined): ParsedValue | null; /** Convert the given amount of fractions to pixels. */ export declare function fractionsToPx(fractions: number, contextWidth: number, resizeHandleCount: number): number; /** Convert the given amount of pixels to fractions. In the panel calculation fractions always scale to a 100, it can also be used to convert px into percent. */ export declare function pxToFractions(px: number, contextWidth: number, resizeHandleCount: number): number; /** Convert view width to pixels. */ export declare function vwToPx(vw: number): number; /** Convert pixels to view width. */ export declare function pxToVw(px: number): number; /** Convert rem to pixels. */ export declare function remToPx(rem: number): number; /** Convert pixels to rem. */ export declare function pxToRem(px: number): number; /** Converts sizes in fractions to an object with panel sizes in all available units. */ export declare function convertToPanelSizes(sizes: PanelSizesWithUnit, rootWidth: number, resizeHandlesCount: number): PanelSizes; /** Converts widths into px. It handles widths in px, fr, %, vw, and rem. */ export declare function anyUnitToPx(parsedValue: ParsedValue, rootWidth: number, resizeHandlesCount: number, /** If true, it doesn't convert 100% widths to fractions and returns null instead. */ ignoreFullWidth?: boolean): number | null; /** Converts widths into fr. It handles widths in px, fr, %,vw and rem. */ export declare function anyUnitToFractions(parsedValue: ParsedValue, rootWidth: number, resizeHandlesCount: number, /** If true, it doesn't convert 100% widths to fractions and returns null instead. */ ignoreFullWidth?: boolean): number | null; /** Converts fractions to the target unit. */ export declare function fractionsToTargetUnit(value: number, targetUnit: PanelSizeUnit, rootWidth: number, resizeHandlesCount: number): number | null; /** Convert the passed width into a px based one. */ export declare function panelPropWidthToPx(width: string | number | undefined, rootWidth: number, resizeHandlesCount?: number): number | null;