declare const DEFAULT_PRECISION = 3; type PercentPadding = 'start' | 'end' | 'none'; type RatioFormatterProps = { /** The ratio to format, must be between 0 and 1 */ ratio: string | number; /** The direction in which to round the number */ roundDirection?: 'nearest' | 'up' | 'down'; /** Whether for format as a percentage or a number between 0 and 1 */ format?: 'decimal' | 'percent'; /** The number of digits to display after the decimal point */ precision?: number; /** * Pads the string with empty characters to ensure consistent widths for percentages. Can pad either 'start' or 'end' of the string. */ percentPadding?: PercentPadding; /** * If true: * * If ratio <= 0, return the smallest number greater than zero that meets the * `precision` requirement * * If ratio >= 1, return the largest number less than 1 that meets the * `precision` requirements * * When precision is 1, the smallest number greater than zero is 0.1 and the * largest number less than 1 is 0.9 * */ probabilityMode?: boolean; }; declare const ratioFormatter: ({ ratio, roundDirection, precision: precisionProp, format, percentPadding, probabilityMode, }: RatioFormatterProps) => string; export type { RatioFormatterProps }; export { DEFAULT_PRECISION, ratioFormatter };