export type uint8_t = number; export type uint16_t = number; export type uint32_t = number; export type uint64_t = bigint; export declare const UINT8_MAX = 255; export declare const UINT16_MAX = 65535; export declare const UINT32_MAX = 4294967295; export declare const UINT64_MAX = 18446744073709551615n; /** Extended Boolean type */ export type ExtendedBool = boolean | 0 | 1 | undefined; /** Compact Boolean values */ export declare const enum ShortBool { FALSE = 0, TRUE = 1 } /** Check if the types are equal. */ export type Equal = (() => T extends Left ? true : false) extends (() => T extends Right ? true : false) ? true : false; export type PositiveInteger = Equal extends true ? Value : `${Value}` extends `${bigint}` ? `${Value}` extends '0' | `-${string}` ? never : Value : never; export type NonnegativeInteger = Equal extends true ? Value : `${Value}` extends `${bigint}` ? `${Value}` extends `-${string}` ? never : Value : never; export type MethodsReturningType = { [K in keyof T]: T[K] extends (...a: any) => Return ? K : never; }[keyof T];