// import Irys from "./irys"; // export class IrysBuilder { // protected irysClass: TReturn; // public async build(): Promise { // return new this.irysClass() // } // // Promise contract functions, so users can `await` a builder instance to resolve the built client. // // very cool, thanks Knex. // /** // * Resolves `this` by building & initializing all the registered components // * @param onFulfilled - optional onFulfilled callback // * @returns - all results for built query // */ // public async then( // onFulfilled?: ((value: TReturn) => any | PromiseLike) | undefined | null, // onRejected?: (value: Error) => any | PromiseLike | undefined | null, // ): Promise { // return this.build().then(onFulfilled, onRejected); // } // public async catch(onReject?: ((value: TReturn) => any | PromiseLike) | undefined | null): Promise { // return this.then().catch(onReject); // } // public async finally(onFinally?: (() => void) | null | undefined): Promise { // return this.then().finally(onFinally); // } // }