/** * Payload decoding for LayerZero Scan messages. * * Uses SDK-internal decode functions directly rather than re-implementing them. */ import type { EvmReadProvider, Hex } from "../../types/evm.js"; import type { TokenEntry } from "../../registry/types.js"; import type { BridgeRequestSummary, SendPayloadSummary, TokenMetadata } from "./types.js"; /** * Attempt to decode a BridgeRequest from a compose message. * Returns `null` when the message is empty or cannot be decoded. */ export declare function tryDecodeBridgeRequest(composeMsg: Hex): BridgeRequestSummary | null; /** * Decode a send() transaction's calldata into a summary. */ export declare function decodeSendSummary(data: Hex): SendPayloadSummary; /** * Fetch the OFTSent amount from a transaction receipt. * * Requires `provider.getTransactionReceipt` to be available. * Returns `undefined` when the provider does not support it or no event is found. */ export declare function fetchOftSentAmount(provider: EvmReadProvider, txHash: string): Promise; /** * Check whether a value is a strict hex string (0x-prefixed). * @internal */ export declare function isHexStrict(value?: string | null): value is Hex; /** * Enrich a send summary with token metadata (decimals, dust-removed amounts). */ export declare function decorateSendSummary(summary: SendPayloadSummary, token?: TokenEntry, fetchMetadata?: (token: TokenEntry) => Promise): Promise; //# sourceMappingURL=codec.d.ts.map