import type { PickDeep } from 'type-fest'; import type { CCIPAPIClient } from './api/index.ts'; import type { Chain, LogFilter } from './chain.ts'; import { NetworkType } from './networks.ts'; import { type CCIPRequest, type CCIPVerifications, type VerifierResult } from './types.ts'; /** Default CCIP v2 indexer base URLs for mainnet. */ export declare const MAINNET_INDEXER_URLS: readonly string[]; /** Default CCIP v2 indexer base URLs for testnet. */ export declare const TESTNET_INDEXER_URLS: readonly string[]; /** Options for {@link fetchVerifications}. */ export type FetchVerificationsOpts = { /** Indexer base URLs, or a {@link NetworkType} to use the built-in defaults. */ indexer?: readonly string[] | NetworkType; /** CCIP API client to race against the indexers; omit or pass `null` to skip. */ apiClient?: CCIPAPIClient | null; /** AbortSignal that cancels in-flight requests and terminates the poll loop. */ watch?: AbortSignal; /** Milliseconds between poll retries when `watch` is set (default: 5000). */ pollInterval?: number; }; /** * Fetch CCV verifications for a CCIP v2.0 message. * * Races the optional API client against all provided indexer URLs via * {@link Promise.any}, returning the first successful response. * * When `opts.watch` is supplied the function retries on * {@link CCIPMessageNotVerifiedYetError} at `opts.pollInterval` ms intervals * until the signal fires. * * @param messageId - The CCIP message ID (hex string) * @param opts - See {@link FetchVerificationsOpts} * @returns CCIPVerifications with verificationPolicy and verifier results * @throws {@link CCIPMessageNotVerifiedYetError} if all sources fail or signal fires */ export declare function fetchVerifications(messageId: string, { indexer, apiClient, watch, pollInterval, }?: FetchVerificationsOpts): Promise; /** * Look for a CommitReport at dest for given CCIPRequest * Provides a basic/generic implementation, but subclasses of Chain may override with more specific * logic in Chain.getVerifications method * * @param dest - Destination network provider * @param offRamp - Commit store address * @param request - CCIP request info * @param hints - Additional filtering hints * @returns CCIP commit info **/ export declare function getOnchainCommitReport(dest: Chain, offRamp: string, { lane, message, log: { blockTimestamp: requestTimestamp }, }: PickDeep, hints?: Pick): Promise; //# sourceMappingURL=commits.d.ts.map