import { Cursor } from '@hazae41/cursor'; import { Nullable } from '../../libs/nullable/index.js'; import { BytesAsInteger } from '../convert/index.js'; interface Eip1559TransactionEnvelopeInit { readonly to?: Nullable; readonly from: BytesAsInteger.From; readonly value: BytesAsInteger.From; readonly data: BytesAsInteger.From; readonly nonce: BytesAsInteger.From; readonly gas: BytesAsInteger.From; readonly gasPrice: BytesAsInteger.From; readonly maxPriorityFeePerGas: BytesAsInteger.From; readonly maxFeePerGas: BytesAsInteger.From; readonly chainId: BytesAsInteger.From; } declare namespace Eip1559TransactionEnvelope { type From = Eip1559TransactionEnvelopeInit; } declare class Eip1559TransactionEnvelope { readonly to: Nullable; readonly from: BytesAsInteger.From; readonly value: BytesAsInteger.From; readonly data: BytesAsInteger.From; readonly nonce: BytesAsInteger.From; readonly gas: BytesAsInteger.From; readonly gasPrice: BytesAsInteger.From; readonly maxPriorityFeePerGas: BytesAsInteger.From; readonly maxFeePerGas: BytesAsInteger.From; readonly chainId: BytesAsInteger.From; readonly type = 2; constructor(to: Nullable, from: BytesAsInteger.From, value: BytesAsInteger.From, data: BytesAsInteger.From, nonce: BytesAsInteger.From, gas: BytesAsInteger.From, gasPrice: BytesAsInteger.From, maxPriorityFeePerGas: BytesAsInteger.From, maxFeePerGas: BytesAsInteger.From, chainId: BytesAsInteger.From); static create(init: Eip1559TransactionEnvelopeInit): Eip1559TransactionEnvelope; static fromOrThrow(init: Eip1559TransactionEnvelopeInit): Eip1559TransactionEnvelope; writeOrThrow(cursor: Cursor): void; } interface Eip2718TransactionEnvelope { } export { Eip1559TransactionEnvelope }; export type { Eip1559TransactionEnvelopeInit, Eip2718TransactionEnvelope };