export enum Kind { Null = 0, Array = 1, Map = 2, Any = 3, Uint8Array = 4, String = 5, Error = 6, Boolean = 7, Uint8 = 8, Uint16 = 9, Uint32 = 10, Uint64 = 11, Int32 = 12, Int64 = 13, Float32 = 14, Float64 = 15 } export const BOOLEAN_FALSE = 0; export const BOOLEAN_TRUE = 1; export class Encoder { #private; constructor(buf?: Uint8Array); get bytes(): Uint8Array; null(): this; any(): this; boolean(value: boolean): this; uint8(value: number): this; uint16(value: number): this; uint32(value: number): this; uint64(value: bigint): this; int32(value: number): this; int64(value: bigint): this; float32(value: number): this; float64(value: number): this; array(size: number, valueKind: Kind): this; map(size: number, keyKind: Kind, valueKind: Kind): this; uint8Array(value: Uint8Array): this; string(value: string): this; error(value: Error): this; } export class InvalidBooleanError extends Error { constructor(); } export class InvalidUint8Error extends Error { constructor(); } export class InvalidUint16Error extends Error { constructor(); } export class InvalidUint32Error extends Error { constructor(); } export class InvalidUint64Error extends Error { constructor(); } export class InvalidInt32Error extends Error { constructor(); } export class InvalidInt64Error extends Error { constructor(); } export class InvalidFloat32Error extends Error { constructor(); } export class InvalidFloat64Error extends Error { constructor(); } export class InvalidArrayError extends Error { constructor(); } export class InvalidMapError extends Error { constructor(); } export class InvalidUint8ArrayError extends Error { constructor(); } export class InvalidStringError extends Error { constructor(); } export class InvalidErrorError extends Error { constructor(); } export class Decoder { #private; constructor(buf: Uint8Array); get length(): number; null(): boolean; any(): boolean; boolean(): boolean; uint8(): number; uint16(): number; uint32(): number; uint64(): bigint; int32(): number; int64(): bigint; float32(): number; float64(): number; array(valueKind: Kind): number; map(keyKind: Kind, valueKind: Kind): number; uint8Array(): Uint8Array; string(): string; error(): Error; } //# sourceMappingURL=types.d.ts.map