node-ejs-renderer/node_modules/@jsonjoy.com/json-pack/lib/ion/IonEncoderFast.d.ts

23 lines
981 B
TypeScript
Raw Permalink Normal View History

2024-06-09 13:55:01 -04:00
import type { IWriter, IWriterGrowable } from '@jsonjoy.com/util/lib/buffers';
import { AnnotationAstNode, ArrAstNode, AstNode, BinAstNode, BoolAstNode, FloatAstNode, NintAstNode, ObjAstNode, StrAstNode, UintAstNode } from './ast';
import { Import } from './Import';
export declare class IonEncoderFast {
readonly writer: IWriter & IWriterGrowable;
protected symbols?: Import;
constructor(writer?: IWriter & IWriterGrowable);
encode(value: unknown): Uint8Array;
writeAny(value: AstNode<unknown>): void;
writeIvm(): void;
writeSymbolTable(): void;
writeAnnotations(node: AnnotationAstNode): void;
writeBool(node: BoolAstNode): void;
encodeUint(node: UintAstNode): void;
encodeNint(node: NintAstNode): void;
writeFloat(node: FloatAstNode): void;
writeVUint(num: number): void;
writeStr(node: StrAstNode): void;
writeBin(node: BinAstNode): void;
writeArr(node: ArrAstNode): void;
writeObj(node: ObjAstNode): void;
}