/** * RLE (Run-Length Encoding) for unsigned integers. Literal values are encoded * as-is, repeat sequence are encoded as negative number, which specifies how * many more times the previous value is repeated. * * For example, the sequence `[1, 1, 1, 2, 3, 3]` would be encoded as `[1, -2, 2, 3, -1]`. */ export declare const rle: (uint: number[]) => number[]; /** * RLD (Run-Length Decoding) for unsigned integers. Decodes an array encoded * with the {@link rle} function back to its original form. */ export declare const rld: (encoded: number[]) => number[]; /** * Data RLE (Run-Length Encoding) for arbitrary data. Similar to {@link rle}, but * with arbitrarily complex POJO objects. Records repeats only of missing items * (null or undefined), other items are copied over as-is. A run of missing items * is recorded as `null` followed by a count of how many missing items there are. * * For example, the sequence `[{}, null, null, 3]` would be encoded as `[{}, null, 2, 3]`. * * @param data List of arbitrary POJO data structures. */ export declare const drle: (data: unknown[]) => unknown[]; /** * Data RLD (Run-Length Decoding) for arbitrary data. Decodes an array encoded * with the {@link drle} function back to its original form. */ export declare const drld: (encoded: unknown[]) => unknown[]; /** * Delta encoding for unsigned integers. Encodes an array of unsigned integers as * a sequence of deltas (differences between consecutive values). The first value * is encoded as-is, and subsequent values are encoded as the difference from * the previous value. */ export declare const de: (uint: number[]) => number[]; /** * Delta decoding for unsigned integers. Decodes an array encoded with * the {@link de} function back to its original form. */ export declare const dd: (encoded: number[]) => number[]; /** * Zigzag encoding for signed integers. Encodes signed integers as unsigned * integers by mapping negative numbers to odd positive numbers and non-negative * numbers to even positive numbers. * * For example, the sequence `[-1, 0, 1, -2, 2]` would be encoded as `[1, 0, 2, 3, 4]`. */ export declare const ze: (int: number[]) => number[]; /** * Zigzag decoding for signed integers. Decodes an array encoded with * the {@link ze} function back to its original form. */ export declare const zd: (encoded: number[]) => number[]; //# sourceMappingURL=util.d.ts.map