node-ejs-renderer/node_modules/@jsonjoy.com/json-pack/lib/util/CompressionTable.d.ts
2024-06-09 13:55:01 -04:00

15 lines
495 B
TypeScript

export declare class CompressionTable {
static create(value: unknown): CompressionTable;
protected integers: Set<number>;
protected nonIntegers: Set<unknown>;
protected table: unknown[];
protected map: Map<unknown, number>;
addInteger(int: number): void;
addLiteral(value: number | string | unknown): void;
walk(value: unknown): void;
finalize(): void;
getIndex(value: unknown): number;
getTable(): unknown[];
compress(value: unknown): unknown;
}