///
import DataItem from "./DataItem";
import type Arweave from "arweave";
import type { BundleInterface } from "./BundleInterface";
import type { JWKInterface } from "./interface-jwk";
import type { Transaction, CreateTransactionInterface } from "./nodeUtils.js";
export declare class Bundle implements BundleInterface {
length: number;
items: DataItem[];
protected binary: Buffer;
constructor(binary: Buffer);
getRaw(): Buffer;
/**
* Get a DataItem by index (`number`) or by txId (`string`)
* @param index
*/
get(index: number | string): DataItem;
getSizes(): number[];
getIds(): string[];
getIdBy(index: number): string;
toTransaction(attributes: Partial>, arweave: Arweave, jwk: JWKInterface): Promise;
verify(): Promise;
private getOffset;
/**
* UNSAFE! Assumes index < length
* @param index
* @private
*/
private getByIndex;
private getById;
private getDataItemCount;
private getBundleStart;
private getItems;
}
export default Bundle;