import { type Slice } from 'ton-core'; import { type BuilderWriter } from './writer'; export declare const CHUNKED_DATA_PREFIX = 1; /** * Store `0x01` prefix byte and chunks hash map * chunks#01 data:ChunkedData = ContentData; * chunked_data#_ data:(HashMapE 32 ^(SnakeData ~0)) = ChunkedData; */ export declare function storeChunkedString(source: string): BuilderWriter; /** * Store chunks hash map * chunks#01 data:ChunkedData = ContentData; * chunked_data#_ data:(HashMapE 32 ^(SnakeData ~0)) = ChunkedData; */ export declare function storeChunks(source: string): BuilderWriter; /** * Read first prefix byte. If prefix is `0x01` load chunks hash map * chunks#01 data:ChunkedData = ContentData; * chunked_data#_ data:(HashMapE 32 ^(SnakeData ~0)) = ChunkedData; * Notice that above it is `SnakeData ~0` which means `the last layer` * So there must be no refs in it, and it should be an integer number of bytes */ export declare function loadChunkedString(slice: Slice): string; /** * Read chunks hash map * chunks#01 data:ChunkedData = ContentData; * chunked_data#_ data:(HashMapE 32 ^(SnakeData ~0)) = ChunkedData; * @param slice */ export declare function loadChunks(slice: Slice): string; //# sourceMappingURL=chunkedString.d.ts.map