import { ContractTransaction } from 'ethers'; import { Chain } from '../models/engine-types'; import { AddressData } from '../key-derivation'; import { CommitmentCiphertextV2 } from '../models/formatted-types'; import { ExtractedRailgunTransactionData } from '../models/transaction-types'; import { TransactNote } from '../note/transact-note'; import { TokenDataGetter } from '../token/token-data-getter'; import { RelayAdapt7702ExecutionType } from '../transaction/relay-adapt-7702-signature'; export declare const extractFirstNoteERC20AmountMapFromTransactionRequestV2: (chain: Chain, transactionRequest: ContractTransaction, useRelayAdapt: boolean, contractAddress: string, receivingViewingPrivateKey: Uint8Array, receivingRailgunAddressData: AddressData, tokenDataGetter: TokenDataGetter, useRelayAdapt7702?: boolean, relayAdapt7702ExecutionType?: Optional) => Promise>; export declare const extractRailgunTransactionDataFromTransactionRequestV2: (chain: Chain, transactionRequest: ContractTransaction, useRelayAdapt: boolean, contractAddress: string, receivingViewingPrivateKey: Uint8Array, receivingRailgunAddressData: AddressData, tokenDataGetter: TokenDataGetter, useRelayAdapt7702?: boolean, relayAdapt7702ExecutionType?: Optional) => Promise; /** * Advisory check that the decoded RelayAdapt7702 execute calldata carries an execution * signature that recovers to the executing (ephemeral) account. For the 7702 path the * extractor's contractAddress is the ephemeral account (it is asserted to equal the tx * `to`), which is the EIP-712 verifyingContract, so it is the expected signer. * * This is intentionally NOT fail-closed: decoded calldata may not re-encode byte-identically * (e.g. commitmentCiphertext shape), so a mismatch is a diagnostic signal, not a gate. * Promote to fail-closed only after verifying re-encode fidelity end-to-end against the * deployed contract. */ export declare const validateRelayAdapt7702ExecutionSignatureAdvisory: (chain: Chain, expectedSigner: string, args: any) => void; export declare const extractNPKFromCommitmentCiphertextV2: (chain: Chain, commitmentCiphertext: CommitmentCiphertextV2, receivingViewingPrivateKey: Uint8Array, receivingRailgunAddressData: AddressData, tokenDataGetter: TokenDataGetter) => Promise>; export declare const extractERC20AmountFromTransactNote: (decryptedReceiverNote: Optional, commitmentHash: string, receivingRailgunAddressData: AddressData) => Promise>;