/** * Typed failures for Pre-PegIn parameter recovery (#2203). * * Split by who can act on them. A root mismatch is user-fixable — wrong * wallet, wrong account or wrong network — and must be distinguishable from * a search that found nothing, which is ours. Without the split both look * identical to the caller. * * @module recovery/recoveryErrors */ /** * The re-derived vault root does not match the funded Pre-PegIn's auth-anchor * OP_RETURN commitment. * * The root is bound to the wallet seed, the derivation account AND the * network (`derive-context-hash.md` §2.1 folds the connected pubkey and the * canonical network name into the HKDF `info`), so all three must match the * ones that created the deposit. */ export declare class VaultRootMismatchError extends Error { readonly derivedAuthAnchorHash: string; readonly onChainAuthAnchorHash: string; constructor(derivedAuthAnchorHash: string, onChainAuthAnchorHash: string); } /** * The Pre-PegIn carries no single, unambiguous auth-anchor OP_RETURN. * * The anchor sits at `vout === htlcCount`, and it is the only structural * signal for how many HTLC outputs the transaction funds. Without it the * vault count would have to be guessed, so recovery refuses rather than * deriving the wrong number of hashlocks. */ export declare class UnanchoredPrePeginError extends Error { constructor(message: string); } /** * No candidate parameter set reproduces the funded Pre-PegIn's HTLC outputs. * * Either the true parameters are outside the enumerated space — an operator * roster that rotated more than once has no chain-reachable historical read — * or the transaction is not one of ours. */ export declare class PeginParamsNotFoundError extends Error { readonly candidatesTried: number; /** A bounded sample of per-candidate rejection reasons, for diagnosis. */ readonly sampleRejections: readonly string[]; /** Versions that could not be read, the likeliest reason for no match. */ readonly unresolvedLabels: readonly string[]; constructor(candidatesTried: number, /** A bounded sample of per-candidate rejection reasons, for diagnosis. */ sampleRejections: readonly string[], /** Versions that could not be read, the likeliest reason for no match. */ unresolvedLabels?: readonly string[]); } /** * More than one candidate reproduces the funded Pre-PegIn. Fail closed. * * Every survivor byte-matched the SAME funded outputs, so they agree on each * HTLC scriptPubKey and on the total value of each output, and would produce * the same refund transaction. What they disagree on is the SPLIT of that * value into `peginAmount` and reserve, and the version stamps that determine * it — neither of which the transaction carries any evidence of. */ export declare class PeginParamsAmbiguousError extends Error { readonly survivorLabels: readonly string[]; constructor(survivorLabels: readonly string[]); } /** * Exactly one candidate matched, but the candidate space was known to be * incomplete. Fail closed. * * Uniqueness only detects a wrong answer when the right answer is ALSO in the * space. If the true version could not be read, a different version sharing * the same `timelockRefund` and participants matches the transaction just as * well — the search subtracts that candidate's reserve and the verifier adds * the same reserve back, so it survives — and the sole survivor would be * returned with the wrong version stamps and the wrong `peginAmount` split. * * Resolve the versions below and search again rather than trusting the match. */ export declare class PeginParamsIncompleteSpaceError extends Error { readonly matchedLabel: string; readonly unresolvedLabels: readonly string[]; constructor(matchedLabel: string, unresolvedLabels: readonly string[]); } /** * A WASM sizing call returned a value no valid parameter set can produce. * * Raised before the value is consumed, and deliberately NOT treated as a * candidate rejection: it indicts the binary rather than the candidate, so it * escapes the search instead of being counted as one more parameter set that * did not match. */ export declare class PeginSizingIntegrityError extends Error { constructor(message: string); } //# sourceMappingURL=recoveryErrors.d.ts.map