export type NumberPartType = Exclude | 'sign' | 'prefix' | 'suffix'; type IntegerPart = { type: NumberPartType & 'integer'; value: number; }; type FractionPart = { type: NumberPartType & 'fraction'; value: number; }; type DigitPart = IntegerPart | FractionPart; type SymbolPart = { type: Exclude; value: string; }; export type NumberPartKey = string; type KeyedPart = { key: NumberPartKey; }; export type KeyedDigitPart = DigitPart & KeyedPart & { pos: number; }; export type KeyedSymbolPart = SymbolPart & KeyedPart; export type KeyedNumberPart = KeyedDigitPart | KeyedSymbolPart; export type Format = Omit & { notation?: Exclude; }; export type Value = Exclude[0], bigint | undefined>; export declare function formatToData(value: Value, formatter: Intl.NumberFormat, prefix?: string, suffix?: string): { pre: KeyedNumberPart[]; integer: KeyedNumberPart[]; fraction: KeyedNumberPart[]; post: KeyedNumberPart[]; valueAsString: string; value: number; }; export type Data = ReturnType; export {};