/** * utils for working with numbers * * @module */ import { type Codec } from "./Codec.js"; export declare const tryParse: (value: unknown) => Readonly<{ __tag: "none"; }> | Readonly<{ __tag: "some"; value: number; }>; export declare const eq: (a: number, b: number) => boolean; export declare const gt: (a: number, b: number) => boolean; export declare const gte: (a: number, b: number) => boolean; export declare const lt: (a: number, b: number) => boolean; export declare const lte: (a: number, b: number) => boolean; /** * converts between string and number. Invalid values are treated as a right undefined */ export declare const contentAttribute__maybeNumber: Codec; /** * converts between a string and a number. NaN values also produce a left */ export declare const contentAttribute__number: Codec; /** * converts between a locale aware number format (without grouping) and a number */ export declare const localeContentAttribute__number: (forLocale: string) => Codec;