/** fixed point decimal representation. 18 decimal places are kept. */ import type { ClientWithCoreApi, SuiClientTypes } from '@mysten/sui/client'; import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from '../../_framework/reified'; import { FieldsWithTypes } from '../../_framework/util'; export declare function isDecimal(type: string): boolean; export interface DecimalFields { value: ToField<'u256'>; } export type DecimalReified = Reified; export type DecimalJSONField = { value: string; }; export type DecimalJSON = { $typeName: typeof Decimal.$typeName; $typeArgs: []; } & DecimalJSONField; export declare class Decimal implements StructClass { __StructClass: true; static get $typeName(): `${string}::decimal::Decimal`; static readonly $numTypeParams = 0; static readonly $isPhantom: readonly []; readonly $typeName: typeof Decimal.$typeName; readonly $fullTypeName: `${string}::decimal::Decimal`; readonly $typeArgs: []; readonly $isPhantom: typeof Decimal.$isPhantom; readonly value: ToField<'u256'>; private constructor(); static reified(): DecimalReified; static get r(): DecimalReified; static phantom(): PhantomReified>; static get p(): PhantomReified>; private static instantiateBcs; private static cachedBcs; static get bcs(): ReturnType; static fromFields(fields: Record): Decimal; static fromFieldsWithTypes(item: FieldsWithTypes): Decimal; static fromBcs(data: Uint8Array): Decimal; toJSONField(): DecimalJSONField; toJSON(): DecimalJSON; static fromJSONField(field: any): Decimal; static fromJSON(json: Record): Decimal; static fromCoreObject(obj: SuiClientTypes.Object<{ content: true; }>): Decimal; static fetch(client: ClientWithCoreApi, id: string): Promise; }