import type { MessageOrError } from "./error-from-message.js"; /** * Check whether the given value is not just numeric, but is * also an integer. */ export declare const isInt: (obj: unknown) => obj is number; /** * Throw if the given value is not an integer. */ export declare function assertInt(value: unknown, messageOrError: MessageOrError): asserts value is number; /** * Coerce a value's type to a number, throwing if it's not an integer. */ export declare const expectInt: (obj: unknown, messageOrError: MessageOrError) => number; /** * Convert to an integer, if it seems like it could be done safely. * See {@link https://en.wikipedia.org/wiki/Decimal_separator | decimal separator on Wikipedia} * for details on how this is probably very wrong in many countries. */ export declare const maybeInt: (text: string) => number | undefined; export type Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"; export declare const isDigit: (value: unknown) => value is Digit; export type HexDigit = Digit | "A" | "B" | "C" | "D" | "E" | "F" | "a" | "b" | "c" | "d" | "e" | "f"; export declare const isHexDigit: (value: unknown) => value is HexDigit; //# sourceMappingURL=is-int.d.ts.map