import { Hex } from 'ox'; /** Coerce a TIDX numeric column (bigint / number / string) to a JS number. */ export declare function toNumber(value: unknown): number | undefined; /** * Coerce a TIDX text column (address / hash / topic / hex data) to a string. * TIDX already returns these columns as strings; this narrows the `unknown` * row value without an unsafe `String(...)` on a possible object. Returns * undefined for null/non-string values. */ export declare function toText(value: unknown): string | undefined; /** * Coerce a TIDX numeric column (bigint / number / string) to a non-negative * decimal integer string, preserving precision for values beyond * `Number.MAX_SAFE_INTEGER` (e.g. token balances). Returns undefined when the * value cannot be interpreted as a non-negative integer. */ export declare function toIntegerString(value: unknown): string | undefined; /** Builds a token amount from its base-unit quantity and immutable token metadata. */ export declare function tokenAmount(options: tokenAmount.Options): { baseUnits: string; currency: string; decimals: number; formatted: string; }; export declare namespace tokenAmount { /** Inputs needed to render a self-contained token amount. */ type Options = { /** Quantity in the token's smallest unit. */ baseUnits: bigint | string; /** Monetary denomination reported by the token. */ currency: string; /** Decimal places used by the token. */ decimals: number; }; } /** * Coerce a TIDX numeric column (bigint / number / decimal string) to a minimal * `0x`-prefixed hex quantity (`0x0` for zero), matching the JSON-RPC wire * format. Returns undefined when the value is null/undefined or cannot be * interpreted as a non-negative integer. */ export declare function toHex(value: unknown): Hex.Hex | undefined; /** * Parse a `0x`-prefixed hex quantity into a non-negative decimal integer string, * preserving precision beyond `Number.MAX_SAFE_INTEGER`. Returns undefined when * the value is not a valid hex quantity. */ export declare function fromHex(value: unknown): string | undefined; /** * Parse a `0x`-prefixed hex quantity into a JS number. Returns undefined when * the value is not a valid hex quantity. */ export declare function hexToNumber(value: unknown): number | undefined; /** * Convert a `0x`-prefixed hex Unix-seconds timestamp into an ISO 8601 datetime * string. Returns undefined when the value is not a valid hex quantity. */ export declare function hexSecondsToIso(value: unknown): string | undefined; /** Convert a block's timestamp to an ISO 8601 datetime string, preserving milliseconds. */ export declare function blockToIso(block: unknown): string | undefined; /** * Coerce a TIDX timestamp column (Date / epoch seconds / epoch ms / ISO string) * to an ISO 8601 datetime string. Returns undefined when the value cannot be * interpreted as a timestamp. */ export declare function toIsoDateTime(value: unknown): string | undefined; //# sourceMappingURL=Value.d.ts.map