/** * Privacy Connector — Real bridge to cross-chain-atomic-routing privacy lib * * Connects the worker's SwapDependencies interface to the actual * Railgun privacy functions: key derivation, UTXO fetching, proof * generation, and transaction building. * * Also provides the shield function for onboarding (deposit to privacy pool). */ import type { SwapDependencies } from '../recipes/private-swap'; /** Privacy deps — all SwapDependencies except getQuote (which comes from swap providers) */ export type PrivacyDeps = Omit; /** * Create real SwapDependencies connected to the privacy lib. */ export declare function createRealSwapDeps(config: { chainId: number; rpcUrl: string; entryPoint: string; privateKey: string; }): PrivacyDeps; /** * Shield tokens from EOA into Railgun privacy pool. * * This is the onboarding step — deposits public tokens into the * privacy pool so they can be used for private operations. * * @returns Shield tx hash and derived railgun address */ export declare function shieldTokens(params: { privateKey: string; tokenAddress: string; amount: bigint; chainId: number; rpcUrl: string; railgunRelay: string; onProgress?: (msg: string) => void; }): Promise<{ txHash: string; railgunAddress: string; }>; /** * Wait for the backend to index a shield commitment. * Polls every 5 seconds for up to maxWaitMs. */ export declare function waitForShieldIndexing(params: { privateKey: string; tokenAddress: string; expectedAmount: bigint; chainId: number; maxWaitMs?: number; onProgress?: (msg: string) => void; }): Promise;