import type { AllowNullish, AllowNullishReturn, WithOptionalFind, WithUnit } from '../common/private-types'; import { Nullish } from '../common/private-types'; import type { DeclarativeFindUnit, MultiplierFindItem } from '../common/types'; import type { DeprecatedFormatFindUnitFunction, DeprecatedFormatGetUnitFunction } from '../deprecated-types'; export type FormatUnitOption = AllowNullish; export type FormatFindUnitFunction = (value: number) => AllowNullishReturn; export type FormatFindUnitOption = AllowNullish | DeprecatedFormatFindUnitFunction; export type RoundDecimals = number; export type RoundFunction = (num: number) => string | number; export interface FormatRoundAdvancedOptions { readonly dec?: AllowNullish; readonly fixed?: AllowNullish; } export type FormatRoundOption = AllowNullish; export type FormatOutputFunction = (value: string | number, pre: string, unit: U) => string; export interface FormatOutputAdvancedOption { readonly space?: AllowNullish; } export type FormatOutputOption = AllowNullish | FormatOutputAdvancedOption>; interface CreateFormatterOptionsBase extends WithOptionalFind { readonly round?: FormatRoundOption; readonly output?: FormatOutputOption; } export interface CreateFormatterOptionsWithoutUnit extends Partial>, CreateFormatterOptionsBase { } export interface CreateFormatterOptionsWithUnit extends WithUnit>, CreateFormatterOptionsBase { } export type CreateFormatterOptions = Partial>; export type FormatInput = number; export type Formatter = (value: FormatInput) => string; export {}; //# sourceMappingURL=types.d.ts.map