import type { CBORValue } from "./types.js"; import { EncodeOptions, FloatSize } from "./options.js"; export declare class Encoder { #private; static defaultChunkSize: number; readonly allowUndefined: boolean; readonly chunkRecycling: boolean; readonly chunkSize: number; readonly minFloatSize: (typeof FloatSize)[keyof typeof FloatSize]; private readonly encoder; private readonly buffer; private readonly view; private readonly array; private offset; constructor(options?: EncodeOptions); get closed(): boolean; private allocate; private float16; private float32; private float64; private uint8; private uint16; private uint32; private uint64; private encodeTypeAndArgument; private encodeNumber; private encodeInteger; private encodeFloat; private encodeString; private encodeBytes; private writeBytes; encodeValue(value: CBORValue): Iterable; flush(): Iterable; private static compareEntries; private static getAdditionalInformation; } /** * Encode a single CBOR value. * options.chunkRecycling has no effect here. */ export declare function encode(value: CBORValue, options?: EncodeOptions): Uint8Array;