/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ type CSSLengthUnitType = 'em' | 'px' | 'rem' | 'vh' | 'vmax' | 'vmin' | 'vw'; type ResolvePixelValueOptions = Readonly<{ fontScale: number | void; inheritedFontSize: null | undefined | number; viewportHeight: number; viewportScale: number; viewportWidth: number; }>; export declare class CSSLengthUnitValue { static parse(input: string): CSSLengthUnitValue | null; value: number; unit: CSSLengthUnitType; constructor(value: number, unit: CSSLengthUnitType); resolvePixelValue(options: ResolvePixelValueOptions): number; }