import type { BundleItem } from "./BundleItem"; import type Arweave from "arweave"; import type { JWKInterface } from "./interface-jwk"; import type { CreateTransactionInterface, Transaction } from "$/utils"; type ResolvesTo = T | Promise | ((...args: any[]) => Promise); export interface BundleInterface { readonly length: ResolvesTo; readonly items: BundleItem[] | AsyncGenerator; get(index: number | string): BundleItem | Promise; getIds(): string[] | Promise; getRaw(): ResolvesTo; toTransaction(attributes: Partial, arweave: Arweave, jwk: JWKInterface): Promise; }