import { HexInput, Hex, AccountAddressInput, AccountAddress } from '@aptos-labs/ts-sdk'; type ByteStream = ReadableStream; type ChunkSource = ByteStream | ArrayBufferView; /** * Read a stream or buffer into chunks of a given size. * * @param input - The stream or buffer to read. * @param chunkSize - The size of each chunk. * * @returns A generator of chunks. */ declare function readInChunks(input: ChunkSource, chunkSize: number): AsyncGenerator<[number, Uint8Array]>; /** * Zero pad a buffer to a desired length. * * @param buffer - The buffer to zero pad. * @param desiredLength - The desired length of the buffer. * * @returns The zero padded buffer. */ declare function zeroPadBytes(buffer: Uint8Array, desiredLength: number): Uint8Array; /** * Concatenates a list of hashes into a single hash. * * @param parts - The list of hashes to concatenate. * * @returns A hash of the concatenated hashes. */ declare function concatHashes(parts: HexInput[]): Promise; /** * Correctly constructs a full URL string by appending the specified path to the base URL string. * * This function accepts baseUrl strings with and without ending forward slashes and paths with and without beginning forward slashes. * * * @param path - The path to append to the base URL string. * @returns The full request URL. */ declare function buildRequestUrl(path: string, baseUrl: string): URL; /** * Reformats a blob name to remove the account address prefix and return only the blob name suffix. * * @param blobName - The full blob name. * @returns The blob name suffix. */ declare function getBlobNameSuffix(blobName: string): string; declare function normalizeAddress(address: AccountAddressInput): AccountAddress; export { buildRequestUrl, concatHashes, getBlobNameSuffix, normalizeAddress, readInChunks, zeroPadBytes };