import type { Hex } from "../types/evm.js"; /** Decoded fields from a `send()` transaction input. */ export interface DecodedSendPayload { dstEid: number; to: Hex; amountLD: bigint; minAmountLD: bigint; composeMsg: Hex; } /** Decoded fields from a BridgeRequest compose message. */ export interface DecodedBridgeRequest { dstEid: number; to: Hex; refundAddress: Hex; minAmountOut: bigint; } /** * Decode the calldata of a `send()` transaction on a zERC20 (OFT) contract. * * @throws if `data` does not encode a call to `send()`. */ export declare function decodeSendPayload(data: Hex): DecodedSendPayload; /** * Extract the `amountReceivedLD` value from the first `OFTSent` event found in * a set of transaction logs. * * Returns `undefined` when no `OFTSent` event is present. */ export declare function extractOftSentAmount(logs: ReadonlyArray<{ topics: readonly Hex[]; data: Hex; }>): bigint | undefined; /** * Decode a BridgeRequest compose message. * * Returns `null` when `composeMsg` is empty (`"0x"`) or cannot be decoded. */ export declare function decodeBridgeRequest(composeMsg: Hex): DecodedBridgeRequest | null; //# sourceMappingURL=decode.d.ts.map