import * as PB from 'schemata-ts/PatternBuilder'; import * as Int from 'schemata-ts/schemables/WithInt/definition'; import { SchemaExt } from 'schemata-ts/SchemaExt'; /** * Controls the output base of the encoded string. Currently only accepts 2, 8, 10, and 16 * due to constraints using `Number` as a parser. It does not decode in this specified * base, and accepts any base as input: 2, 8, 10, or 16. * * @since 1.0.0 */ export declare type IntFromStringParams = { readonly encodeToBase?: 2 | 8 | 10 | 16; }; /** * @since 1.0.0 * @category Model */ export declare type IntFromStringS = (params?: Int.IntParams & IntFromStringParams) => SchemaExt; /** * @since 1.0.0 * @category Pattern */ export declare const intFromString: PB.Pattern; /** * Integer branded newtype from string. Parameters: min, max are inclusive. * * Note: has an optional `encodeToBase` parameter that controls the output base of the * encoded string. Currently only decodes binary, octal, decimal, and hexadecimal input * bases. It decodes in any base, and encodes to supplied parameter defaulting to decimal. * * _Note_: Does not currently allow exponential notation (e.g. `0x123e4`). * * Represents string-integers: * * ```math * { z | z ∈ ℤ, z >= -2 ** 53 + 1, z <= 2 ** 53 - 1 } * ``` * * @since 1.0.0 * @category Schema */ export declare const IntFromString: IntFromStringS; //# sourceMappingURL=IntFromString.d.ts.map