import { PublicKey, TransactionInstruction, type Signer } from "@solana/web3.js"; /** Explicit resource limits signed into every v1 transaction. */ export interface V1ResourceConfig { /** Maximum compute units, from 1 through 1,400,000. */ readonly computeUnitLimit: number; /** Maximum loaded account data bytes, from 1 through 64 MiB. */ readonly loadedAccountsDataSizeLimit: number; /** Total transaction priority fee in lamports, as an unsigned 64-bit integer. */ readonly priorityFeeLamports: bigint; /** Heap bytes, 32–256 KiB in 1-KiB increments; omission requests the runtime default. */ readonly heapSize?: number; } /** A recent blockhash, its paired expiry height, and caller-selected resources. */ export interface V1TransactionContext { readonly blockhash: string; /** Exact nonzero block height returned alongside blockhash by getLatestBlockhash. */ readonly lastValidBlockHeight: number; readonly resources: V1ResourceConfig; } /** Validate resource units and runtime bounds without supplying defaults. */ export declare function validateV1Resources(resources: V1ResourceConfig): void; /** Immutable v1 message and signatures, validated at every import boundary. */ export declare class V1Transaction { #private; static readonly MAX_TRANSACTION_SIZE = 4096; static readonly MAX_ADDRESSES = 64; private constructor(); /** Compile offline with all required signature slots included in size checks. */ static compile(instructions: readonly TransactionInstruction[], payer: PublicKey, context: V1TransactionContext): V1Transaction; private static compileValidated; /** Import canonical v1 bytes only. Unsigned imports retain zeroed signature slots. */ static fromWireBytes(wire: Uint8Array, context: V1TransactionContext): V1Transaction; get context(): V1TransactionContext; get feePayer(): PublicKey; get recentBlockhash(): string; get lastValidBlockHeight(): number; get requiredSigners(): PublicKey[]; /** Return fresh decoded instruction objects; mutating them cannot change this message. */ get instructions(): TransactionInstruction[]; /** Canonical version-prefixed bytes signed by every required signer. */ messageBytes(): Uint8Array; /** Canonical transaction bytes, including every signature slot. */ toWireBytes(): Uint8Array; /** Sign every required key; duplicate supplied keys are harmless. */ sign(signers: readonly Signer[]): V1Transaction; /** Reject wallet message changes and verify every returned Ed25519 signature. */ acceptSignedBytes(wire: Uint8Array): V1Transaction; /** Verify every required signature over the immutable canonical message. */ verifySignatures(): void; /** The first signature identifies a fully signed transaction for reconciliation. */ get signature(): string; private decoded; private compiled; } //# sourceMappingURL=transaction.d.ts.map