/// import { BaseCoin as CoinConfig } from '@bitgo/statics'; import BigNumber from 'bignumber.js'; import { BaseAddress, BaseKey, BaseTransactionBuilder, TransactionType, BaseTransaction } from '@bitgo/sdk-core'; import { Transaction } from './transaction'; import { KeyPair } from './keyPair'; import { BN } from 'avalanche'; import { BaseTx } from 'avalanche/dist/apis/platformvm/basetx'; import { Credential } from 'avalanche/dist/common'; import { DecodedUtxoObj } from './iface'; export declare abstract class TransactionBuilder extends BaseTransactionBuilder { private _transaction; _signer: KeyPair[]; protected recoverSigner: boolean; /** * When using recovery key must be set here * TODO: STLX-17317 recovery key signing * @param recoverSigner */ recoverMode(recoverSigner?: boolean): this; constructor(_coinConfig: Readonly); /** * commented out check until multisig signing is in effect * TODO: STLX-17077 * @param value */ threshold(value: number): this; locktime(value: string | number): this; fromPubKey(senderPubKey: string | string[]): this; utxos(value: DecodedUtxoObj[]): this; /** * * @param value Optional Buffer for the memo * @returns value Buffer for the memo * set using Buffer.from("message") */ memo(value: string): this; /** * Initialize the transaction builder fields using the decoded transaction data * * @param {Transaction} tx the transaction data */ initBuilder(tx?: BaseTx): this; credentials(credentials: Credential[]): this; /** @inheritdoc */ protected fromImplementation(rawTransaction: string): Transaction; get hasSigner(): boolean; /** @inheritdoc */ protected buildImplementation(): Promise; /** * Builds the avaxp transaction * @return {Transaction} avaxp sdk transaction */ protected abstract buildAvaxpTransaction(): BaseTx; /** @inheritdoc */ protected get transaction(): Transaction; protected set transaction(transaction: Transaction); protected signImplementation({ key }: BaseKey): BaseTransaction; protected abstract get transactionType(): TransactionType; /** * Validates the threshold * @param threshold */ validateThreshold(threshold: number): void; /** * Validates locktime * @param locktime */ validateLocktime(locktime: BN): void; /** @inheritdoc */ validateAddress(address: BaseAddress, addressFormat?: string): void; /** @inheritdoc */ validateKey({ key }: BaseKey): void; /** @inheritdoc */ validateRawTransaction(rawTransaction: string): void; /** @inheritdoc */ validateTransaction(transaction?: Transaction): void; /** @inheritdoc */ validateValue(value: BigNumber): void; validateUtxos(values: DecodedUtxoObj[]): void; validateUtxo(value: DecodedUtxoObj): void; } //# sourceMappingURL=transactionBuilder.d.ts.map