@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
15 lines • 724 B
TypeScript
export declare const INT_MAX: bigint;
/**
* ASCII decimal `digits` as a number, null when it is `bound` or more. Leading
* zeros go first and a run longer than the bound is refused by its length, so
* however many digits are typed, the conversion only ever sees as many as the
* bound has. Mirrors Python's bounded_decimal.
*/
export declare function boundedDecimal(digits: string, bound: bigint): bigint | null;
/**
* C's `atoi`: the decimal number `text` begins with, after C blanks and one
* sign, 0 when it begins with none, saturated to the `long` range as glibc's
* `strtol` underneath it is. Mirrors Python's `atoi`.
*/
export declare function atoi(text: string): number;
//# sourceMappingURL=strtol.d.ts.map