/** * Takes and individual piece of content and adds a varint length prefex * @param content individual piece of content * @returns Uint8Array of leb128 prefix added to content */ export declare function attatchPrefix(content: Uint8Array): Uint8Array; /** * Takes an array of contents and combines them with leb128 compressed prefix separators * @param contents array of individual pieces of content * @returns the contents together with length prefix separators */ export declare function encodeWithVariantPrefix(contents: Uint8Array[]): Uint8Array; type length = number; type offset = number; type Prefix = { length: length; offset: offset; }; export default Prefix; /** * * @param content Uint8Array that contains one or more pieces of prefixed content * @returns Prefix object with length and offset of content */ export declare function parsePrefix(content: Uint8Array): number[]; /** * * @param _content Uint8Array containing at least one prefixed piece of content * @returns Array of separated contents with prefixes removed */ export declare function dropPrefixes(_content: Uint8Array): Uint8Array[]; //# sourceMappingURL=variantPrefix.d.ts.map