///
import { BaseAddress, TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionBuilder } from './transactionBuilder';
import { AddDelegatorTx, BaseTx, ParseableOutput, TransferableInput, TransferableOutput } from 'avalanche/dist/apis/platformvm';
import { BN } from 'avalanche';
import { DecodedUtxoObj } from './iface';
export declare class DelegatorTxBuilder extends TransactionBuilder {
protected _nodeID: string;
protected _startTime: BN;
protected _endTime: BN;
protected _stakeAmount: BN;
protected _rewardAddress: BaseAddress;
/**
*
* @param coinConfig
*/
constructor(coinConfig: Readonly);
/**
* get transaction type
* @protected
*/
protected get transactionType(): TransactionType;
/**
*
* @param nodeID
*/
nodeID(value: string): this;
/**
*
* @param startTime
*/
startTime(value: string | number): this;
/**
*
* @param endTime
*/
endTime(value: string | number): this;
/**
*
* @param value
*/
stakeAmount(value: BN | string): this;
/**
* Set the transaction source
*
* @param {BaseAddress} address The source account
* @returns {TransactionBuilder} This transaction builder
*/
rewardAddress(address: BaseAddress): this;
/**
* region Validators
*/
/**
* validates a correct NodeID is used
* @param nodeID
*/
validateNodeID(nodeID: string): void;
/**
*
* protected _startTime: Date;
* protected _endTime: Date;
* 2 weeks = 1209600
* 1 year = 31556926
* unix time stamp based off seconds
*/
validateStakeDuration(startTime: BN, endTime: BN): void;
/**
*
* @param amount
*/
validateStakeAmount(amount: BN): void;
initBuilder(tx?: AddDelegatorTx): this;
/**
*
* @protected
*/
protected buildAvaxpTransaction(): BaseTx;
protected stakeTransferOut(): TransferableOutput;
protected rewardOwnersOutput(): ParseableOutput;
/**
* Inputs can be controlled but outputs get reordered in transactions
* In order to make sure that the mapping is always correct we create an addressIndx which matches to the appropiate
* signatureIdx
* @param inputs
* @protected
*/
protected recoverUtxos(inputs: TransferableInput[]): DecodedUtxoObj[];
/**
* Threshold must be 2 and since output always get reordered we want to make sure we can always add signatures in the correct location
* To find the correct location for the signature, we use the ouput's addresses to create the signatureIdx in the order that we desire
* 0: user key, 1: recovery key, 2: hsm key
* @protected
*/
protected createInputOutput(): {
inputs: TransferableInput[];
outputs: TransferableOutput[];
};
}
//# sourceMappingURL=delegatorTxBuilder.d.ts.map