@gulujs/toml
Version:
TOML parser and serializer
26 lines (25 loc) • 689 B
TypeScript
import { Converter } from './converter.js';
export type Sign = '' | '-' | '+';
export type Radix = 10 | 16 | 8 | 2;
export declare const MAX_SAFE_INTEGER_STRING_MAP: Readonly<{
10: string;
16: string;
8: string;
2: string;
}>;
export declare const INTEGER_PREFIX_MAP: Readonly<{
10: "";
16: "0x";
8: "0o";
2: "0b";
}>;
export declare class IntegerConverter implements Converter<number | bigint> {
convertStringToJsValue(str: string, options: {
sign: Sign;
radix: Radix;
}): number | bigint;
isJsValue(value: unknown): boolean;
convertJsValueToString(value: number | bigint, options: {
radix: Radix;
}): string;
}