/** * @fileoverview chainweb_spv_proof - fetch an SPV proof for a cross-chain tx. * * Calls `POST /chain//pact/spv` with `{ requestKey, targetChainId }`. * The proof is a base64 string passed through to `chainweb_continue_pact`. * * When the proof is not yet ready (tx still in mempool or awaiting cut * confirmation), chainweb responds with a short status string. We surface * that as `ready: false` — callers poll, they do not treat it as an error. */ import { z } from 'zod'; import type { ChainwebClient } from '../client/fetch.js'; export declare const SpvProofInputShape: { sourceChainId: z.ZodString; targetChainId: z.ZodString; requestKey: z.ZodString; timeoutMs: z.ZodDefault; }; export declare const SpvProofInputSchema: z.ZodObject<{ sourceChainId: z.ZodString; targetChainId: z.ZodString; requestKey: z.ZodString; timeoutMs: z.ZodDefault; }, z.core.$strip>; export interface SpvProofResult { ready: boolean; proof?: string; message?: string; sourceChainId: string; targetChainId: string; } export interface SpvProofToolConfig { client: ChainwebClient; } export declare function createSpvProofTool(config: SpvProofToolConfig): (args: unknown) => Promise<{ content: SpvProofResult[]; }>; //# sourceMappingURL=spv-proof.d.ts.map