import type { AccountMeta, PublicKey, Signer } from '@solana/web3.js'; import { TransactionInstruction } from '@solana/web3.js'; import { TokenInstruction } from './types.js'; /** TODO: docs */ export interface UnwrapLamportsInstructionData { instruction: TokenInstruction.UnwrapLamports; amount: bigint | null; } /** TODO: docs */ export declare const unwrapLamportsInstructionData: import("@solana/buffer-layout").Structure; /** * Construct a UnwrapLamports instruction * * @param source Native source account * @param destination Account receiving the lamports * @param owner Owner of the source account * @param amount Amount of lamports to unwrap * @param multiSigners Signing accounts if `owner` is a multisig * @param programId SPL Token program account * * @return Instruction to add to a transaction */ export declare function createUnwrapLamportsInstruction(source: PublicKey, destination: PublicKey, owner: PublicKey, amount: bigint | null, multiSigners: (Signer | PublicKey)[] | undefined, programId: PublicKey): TransactionInstruction; /** A decoded, valid UnwrapLamports instruction */ export interface DecodedUnwrapLamportsInstruction { programId: PublicKey; keys: { source: AccountMeta; destination: AccountMeta; owner: AccountMeta; multiSigners: AccountMeta[]; }; data: { instruction: TokenInstruction.UnwrapLamports; amount: bigint | null; }; } /** * Decode a UnwrapLamports instruction and validate it * * @param instruction Transaction instruction to decode * @param programId SPL Token program account * * @return Decoded, valid instruction */ export declare function decodeUnwrapLamportsInstruction(instruction: TransactionInstruction, programId: PublicKey): DecodedUnwrapLamportsInstruction; /** A decoded, non-validated UnwrapLamports instruction */ export interface DecodedUnwrapLamportsInstructionUnchecked { programId: PublicKey; keys: { source: AccountMeta | undefined; destination: AccountMeta | undefined; owner: AccountMeta | undefined; multiSigners: AccountMeta[]; }; data: { instruction: number; amount: bigint | null; }; } /** * Decode a UnwrapLamports instruction without validating it * * @param instruction Transaction instruction to decode * * @return Decoded, non-validated instruction */ export declare function decodeUnwrapLamportsInstructionUnchecked({ programId, keys: [source, destination, owner, ...multiSigners], data, }: TransactionInstruction): DecodedUnwrapLamportsInstructionUnchecked; //# sourceMappingURL=unwrapLamports.d.ts.map