import { TxOutput } from 'bitcoinjs-lib'; import { Network } from '../networks'; import { UtxoPsbt, PsbtOpts } from './UtxoPsbt'; import { UtxoTransaction } from './UtxoTransaction'; import { UtxoTransactionBuilder } from './UtxoTransactionBuilder'; export declare function createTransactionFromBuffer(buf: Buffer, network: Network, params: { version?: number; amountType: 'bigint'; }): UtxoTransaction; export declare function createTransactionFromBuffer(buf: Buffer, network: Network, params?: { version?: number; amountType?: 'number' | 'bigint'; }): UtxoTransaction; /** @deprecated - use createTransactionFromBuffer instead */ export declare function createTransactionFromHex(hex: string, network: Network, p: { amountType: 'bigint'; }): UtxoTransaction; /** @deprecated - use createTransactionFromBuffer instead */ export declare function createTransactionFromHex(hex: string, network: Network, p: { amountType: 'number'; }): UtxoTransaction; /** @deprecated - use createTransactionFromBuffer instead */ export declare function createTransactionFromHex(hex: string, network: Network, p?: { amountType?: 'number' | 'bigint'; } | 'number' | 'bigint'): UtxoTransaction; /** * @param buf - must start with the PSBT magic bytes * @param network * @param bip32PathsAbsolute */ export declare function createPsbtFromBuffer(buf: Buffer, network: Network, bip32PathsAbsolute?: boolean): UtxoPsbt; /** * Like createPsbtFromBuffer, but attempts hex and base64 decoding as well. * * @param buf * @param network * @param bip32PathsAbsolute */ export declare function createPsbtDecode(buf: Buffer | string, network: Network, bip32PathsAbsolute?: boolean): UtxoPsbt; export declare function createPsbtFromHex(hex: string, network: Network, bip32PathsAbsolute?: boolean): UtxoPsbt; export declare function createPsbtFromTransaction(tx: UtxoTransaction, prevOuts: TxOutput[]): UtxoPsbt; export declare function getDefaultTransactionVersion(network: Network): number; export declare function setTransactionBuilderDefaults(txb: UtxoTransactionBuilder, network: Network, { version }?: { version?: number; }): void; export declare function setPsbtDefaults(psbt: UtxoPsbt, network: Network, { version }?: { version?: number; }): void; export declare function createPsbtForNetwork(psbtOpts: PsbtOpts, { version }?: { version?: number; }): UtxoPsbt; export declare function createTransactionBuilderForNetwork(network: Network, { version }?: { version?: number; }): UtxoTransactionBuilder; export declare function createTransactionBuilderFromTransaction(tx: UtxoTransaction, prevOutputs?: TxOutput[]): UtxoTransactionBuilder; //# sourceMappingURL=transaction.d.ts.map