/** * Bridge Intent Publisher * * SDK method to create, sign, and publish bridge intents to H3-DAC relay * * Usage: * const publisher = new BridgeIntentPublisher(sdkClient); * const response = await publisher.publishBridgeIntent({ * amount: "2000000", // 2 USDC in wei (6 decimals) * fromChain: "base", * recipient: "0x..." * }); */ import { ethers } from 'ethers'; import { BridgeIntent, BridgeIntentResponse } from './bridge-intent.js'; import { H3DACClient } from '../h3dac/real-client.js'; export type { BridgeIntent, BridgeIntentResponse }; interface BridgeIntentPublishRequest { amount: string; fromChain: 'base' | 'sepolia'; recipient: string; senderAddress: string; nonce: number; } export declare class BridgeIntentPublisher { private h3dac; private wallet; private completionListeners; constructor(h3dacClient: H3DACClient, wallet: ethers.Wallet); /** * Create, sign, and publish bridge intent to H3-DAC relay */ publishBridgeIntent(req: BridgeIntentPublishRequest): Promise; /** * Wait for bridge completion response with timeout */ private waitForCompletion; /** * Subscribe to bridge completion events from H3-DAC relay * Callback fires when executor publishes BridgeCompleted message */ subscribeToBridgeCompletion(intentId: string, callback: (response: BridgeIntentResponse) => void, timeoutMs?: number): Promise; } //# sourceMappingURL=intent-publisher.d.ts.map