///
import { PublicKey } from "@solana/web3.js";
import BN from "bn.js";
import * as types from "../types";
export interface TransferNativeWithPayloadDataFields {
nonce: number;
amount: BN;
targetAddress: types.ForeignAddrFields;
targetChain: number;
payload: Array;
cpiProgramId: PublicKey | null;
}
export interface TransferNativeWithPayloadDataJSON {
nonce: number;
amount: string;
targetAddress: types.ForeignAddrJSON;
targetChain: number;
payload: Array;
cpiProgramId: string | null;
}
export declare class TransferNativeWithPayloadData {
readonly nonce: number;
readonly amount: BN;
readonly targetAddress: types.ForeignAddr;
readonly targetChain: number;
readonly payload: Array;
readonly cpiProgramId: PublicKey | null;
constructor(fields: TransferNativeWithPayloadDataFields);
static layout(property?: string): any;
static fromDecoded(obj: any): types.TransferNativeWithPayloadData;
static toEncodable(fields: TransferNativeWithPayloadDataFields): {
nonce: number;
amount: BN;
targetAddress: {
inner: number[];
};
targetChain: number;
payload: Buffer;
cpiProgramId: PublicKey | null;
};
toJSON(): TransferNativeWithPayloadDataJSON;
static fromJSON(obj: TransferNativeWithPayloadDataJSON): TransferNativeWithPayloadData;
toEncodable(): {
nonce: number;
amount: BN;
targetAddress: {
inner: number[];
};
targetChain: number;
payload: Buffer;
cpiProgramId: PublicKey | null;
};
}