import { Transaction } from '@scure/btc-signer'; import type { TransactionOutput } from '@scure/btc-signer/psbt.js'; import { OutputType } from '../consts/Enums'; type LiquidTxOutput = { script: Buffer; value: Buffer; asset: Buffer; nonce: Buffer; rangeProof?: Buffer; surjectionProof?: Buffer; }; type LiquidTransaction = { outs: LiquidTxOutput[]; }; type DetectedSwap = { type: OutputType; vout: number; } & (T extends Transaction ? TransactionOutput : LiquidTxOutput); /** * Detects a swap output with the matching redeem script or tweaked key in a transaction */ export declare const detectSwap: (redeemScriptOrTweakedKey: Uint8Array, transaction: T) => DetectedSwap | undefined; export {}; //# sourceMappingURL=SwapDetector.d.ts.map