import type { Chain, Client, Hex, Transport } from 'viem'; import { type SmartAccount, type UserOperationReceipt, type WaitForUserOperationReceiptReturnType } from 'viem/account-abstraction'; import type { WebSocketManager } from '../../ws/types.js'; export type { WaitForUserOperationReceiptReturnType }; export type WaitForUserOperationReceiptParameters = { /** The hash of the User Operation. */ hash: Hex; /** Polling frequency (in ms). Defaults to the client's pollingInterval config. */ pollingInterval?: number; /** Optional timeout (in ms) to wait before stopping polling. */ timeout?: number; /** Force HTTP polling instead of WebSocket */ usePolling?: boolean; /** WebSocket manager for real-time updates */ ws?: WebSocketManager; }; /** * Wait for user operation receipt with WebSocket acceleration. * * Uses WebSocket for real-time updates if available, with automatic fallback to HTTP polling. * When WebSocket is available, races WS vs polling so the fastest source wins. */ export declare const waitForUserOperationReceipt: (client: Client, parameters: WaitForUserOperationReceiptParameters) => Promise; //# sourceMappingURL=waitForUserOperationReceipt.d.ts.map