import type { ConvertQuote } from './quote'; import type { ConvertSourceWallet } from './types'; /** What a finished source leg leaves behind for settlement tracking. */ export interface ConvertSubmissionIds { /** The deposit's chain-native id: an EVM hash or a base58 Solana signature. */ sourceTxId: string; /** Relay's route id, when the quote carries one. */ requestId: string | undefined; } /** * A source leg that failed. `submitted` says whether a transaction other than * an approval was already sent: before that, nothing moved and the user can * convert again; after it, the funds may be in flight and must be tracked. */ export declare class ConvertExecutionError extends Error { readonly submitted: boolean; readonly sourceTxId: string | undefined; readonly error: unknown; constructor({ error, submitted, sourceTxId, }: { error: unknown; submitted: boolean; sourceTxId?: string; }); } export declare function getConvertRequestId(quote: ConvertQuote): string | undefined; /** * Runs the quote's source steps through the host's wallet and resolves once * the user has nothing left to sign, with the deposit's id. Settlement is * tracked separately; a resolved source leg is not a finished conversion. * * Throws {@link ConvertExecutionError}, which says whether funds may have moved. */ export declare function executeConvertQuote({ quote, sourceChainId, sourceWallet, onStepMessage, }: { quote: ConvertQuote; sourceChainId: string; sourceWallet: ConvertSourceWallet; /** Relay's raw step text, for logs or an optional status line. */ onStepMessage?: (message: string) => void; }): Promise;