import type { Connection } from '@solana/web3.js'; import type { SourceTokenData } from '../extra-args.ts'; import type { EVM2AnyMessageSent, ExecutionReport } from '../types.ts'; export type MessageWithAccounts = ExecutionReport['message'] & { tokenReceiver: string; computeUnits?: string | number | bigint; accountIsWritableBitmap?: string | number | bigint; accounts?: string[]; }; export declare function isMessageWithAccounts(message: ExecutionReport['message']): message is MessageWithAccounts; export declare function normalizeExecutionReportForSolana(report: ExecutionReport): ExecutionReport; type TokenAmount = EVM2AnyMessageSent['tokenAmounts'][number] & SourceTokenData; export declare function normalizeTokenAmountForSolana(data: TokenAmount): TokenAmount; export declare function waitForFinalization(connection: Connection, signature: string, intervalMs?: number, maxAttempts?: number): Promise; /** * Computes 8-byte Anchor event discriminant from event name * * @param eventName - Anchor event name (e.g., "CcipCctpMessageSentEvent") * @returns buffer consisting of SHA256("event:{eventName}") truncated to first 8 bytes */ export declare function computeAnchorEventDiscriminant(eventName: string): Buffer; export {}; //# sourceMappingURL=utils.d.ts.map