/** Encode: given K equal-length data shards, return M parity shards. */ export declare function rsEncode(data: Uint8Array[], m: number): Uint8Array[]; /** * Recover the K data shards from any K present shards (data and/or parity). * `shards` is the full K+M array with missing entries as null; `len` is the * shard length. Returns the K reconstructed data shards, or null if fewer than * K shards are present (unrecoverable). */ export declare function rsDecode(shards: Array, k: number, m: number, len: number): Uint8Array[] | null;