import { THEME } from "@artsy/palette-tokens"; import { SpacingUnit } from "@artsy/palette-tokens/dist/themes/v3"; import { TextTreatment, TextVariant } from "@artsy/palette-tokens/dist/typography/v3"; import { SpacingUnitPixelValue } from "../types"; export type TextTreatmentWithoutUnits = { fontSize: number; lineHeight: number; letterSpacing?: number; }; /** * This function is converting the space values that come from palette-tokens * from a string `"120px"` to a number `120`, and the key values from a number * `0.5` to a string `"0.5"`. */ export declare const convertWebSpacingUnitsToMobile: (withUnits: typeof THEME.space) => Record; /** * This function is removing the `px` and `em` suffix and making the values * into numbers. letterspacing, fontSize, and lineHeight all take numbers * without units. * * @see https://reactnative.dev/docs/text-style-props */ export declare const convertWebTextTreatmentsToMobile: (withUnits: Record) => Record;