import { type BytesLike } from 'ethers'; import { type FinalityRequested } from './extra-args.ts'; /** Token transfer in MessageV1 format. */ export type TokenTransferV1 = { amount: bigint; sourcePoolAddress: string; sourceTokenAddress: string; destTokenAddress: string; tokenReceiver: string; extraData: string; }; /** MessageV1 struct matching the Solidity MessageV1Codec format. */ export type MessageV1 = { sourceChainSelector: bigint; destChainSelector: bigint; messageNumber: bigint; executionGasLimit: number; ccipReceiveGasLimit: number; finality: FinalityRequested; ccvAndExecutorHash: string; onRampAddress: string; offRampAddress: string; sender: string; receiver: string; destBlob: string; tokenTransfer: readonly TokenTransferV1[]; data: string; }; /** * Decodes a MessageV1 from bytes following the v1 protocol format. * @param encodedMessage - The encoded message bytes to decode. * @returns The decoded MessageV1 struct. */ export declare function decodeMessageV1(encodedMessage: BytesLike): MessageV1; //# sourceMappingURL=messages.d.ts.map