import type { BaseQueryApi } from "@reduxjs/toolkit/query"; import type { Room } from "../reducers/roomSlice"; import type { LibCrypto } from "../cryptography/libcrypto"; export declare const metadataSchemaVersions: number[]; export declare const CANCEL_SEND = "CANCEL_SEND"; /** * Splits a Uint8Array into chunks of a specified size, padding with noise if necessary. * Ensures a minimum number of chunks are created. * Returns the chunks and the last valid byte index in the last chunk before padding. * * @param data - The Uint8Array to be split. * @param minChunks - The minimum number of chunks to produce. * @param chunkSize - The desired size of each chunk. * @param percentageFilledChunk - If = 1 then all chunk is filled with useful data. Range (0, 1]. * @returns An object containing the chunks, their merkle proofs and the last valid byte index. */ export declare const splitToChunks: (message: string | File, api: BaseQueryApi, label: string, room: Room, merkleModule: LibCrypto, minChunks?: number, chunkSize?: number, percentageFilledChunk?: number, metadataSchemaVersion?: number) => Promise<{ merkleRoot: Uint8Array; merkleRootHex: string; hash: Uint8Array; hashHex: string; totalChunks: number; totalSize: number; messageType: number; chunkHashes: Uint8Array; }>; //# sourceMappingURL=splitToChunks.d.ts.map