///
import Moac from "./moac";
import SmartContract from "./smartContract";
/**
* toolkit of erc721
*
* @class ERC721
*/
declare class ERC721 extends SmartContract {
/**
* Creates an instance of ERC721
* @memberof ERC721
*/
constructor();
/**
* init instance of erc721 contract
*
* @param {string} tokenContractAddress contract address of erc721 token
* @param {Moac} moac instance
* @memberof ERC721
*/
init(tokenContractAddress: string, moac: Moac): void;
/**
* destroy instance of erc721 contract
*
* @memberof ERC721
*/
destroy(): void;
/**
* request name of erc721 token
*
* @returns {Promise} name of erc721 token
* @memberof ERC721
*/
name(): Promise;
/**
* request symbol of erc721 token
*
* @returns {Promise} symbol of erc721 token
* @memberof ERC721
*/
symbol(): Promise;
/**
* A distinct Uniform Resource Identifier (URI) for a given asset
*
* @param {string} tokenid of erc721 token
* @returns {Promise} uri of erc721 token
* @memberof ERC721
*/
tokenURI(tokenId: string): Promise;
/**
* mint erc721 token
*
* @param {string} secret of sender
* @param {string} to address of send to
* @param {string} tokenId asset id
* @param {string} uri token uri
* @param {ITransactionOption} options specify gasPrice, nonce, gasLimit etc.
* @returns {Promise} return hash, reject error if something wrong.
* @memberof ERC721
*/
mint(secret: string, to: string, tokenId: string, uri: string, options?: ITransactionOption): Promise;
/**
* burn erc721 token
*
* @param {string} secret of sender
* @param {string} to address of send to
* @param {string} tokenId asset id
* @param {ITransactionOption} options specify gasPrice, nonce, gasLimit etc.
* @returns {Promise} return hash, reject error if something wrong.
* @memberof ERC721
*/
burn(secret: string, owner: string, tokenId: string, options?: ITransactionOption): Promise;
/**
* request balance of erc721 token.
*
* @param {string} address moac address
* @returns {Promise} resolve '0' if request failed, the precision rely on decimal function
* @memberof ERC721
*/
balanceOf(owner: string): Promise;
/**
* request owner of erc721 token
*
* @param {string} tokenId token id
* @returns {Promise} return address of owner
* @memberof ERC721
*/
ownerOf(tokenId: string): Promise;
/**
* safely transfer erc721 token.
*
* @param {string} secret moac secret of sender address
* @param {string} to address of destination
* @param {string} tokenId asset id
* @param {string} data data bytes string
* @param {ITransactionOption} options specify gasPrice, nonce, gasLimit etc.
* @returns {Promise} resolve hash if successful
* @memberof ERC721
*/
safeTransferFrom(secret: string, to: string, tokenId: string, data?: string, options?: ITransactionOption): Promise;
/**
* transfer erc721 token
*
* @param {string} secret moac secret of sender address
* @param {string} to address of destination
* @param {string} tokenId asset id
* @param {ITransactionOption} options specify gasPrice, nonce, gasLimit etc.
* @returns {Promise} resolve hash if successful
* @memberof ERC721
*/
transferFrom(secret: string, to: string, tokenId: string, options?: ITransactionOption): Promise;
/**
* Set or reaffirm the approved address for an NFT.
*
* @param {string} secret moac secret of sender address
* @param {string} approved Address to be approved for the given NFT ID.
* @param {string} tokenId ID of the token to be approved.
* @param {ITransactionOption} options specify gasPrice, nonce, gasLimit etc.
* @returns {Promise} resolve hash if successful
* @memberof ERC721
*/
approve(secret: string, approved: string, tokenId: string, options?: ITransactionOption): Promise;
/**
* Enables or disables approval for a third party ("operator") to manage all of `msg.sender`'s assets. It also emits the ApprovalForAll event
*
* @param {string} secret moac secret of sender address
* @param {string} operator Address to add to the set of authorized operators.
* @param {string} approved True if the operators is approved, false to revoke approval
* @param {ITransactionOption} options specify gasPrice, nonce, gasLimit etc.
* @returns {Promise} resolve hash if successful
* @memberof ERC721
*/
setApprovalForAll(secret: string, operator: string, approved: boolean, options?: ITransactionOption): Promise;
/**
* Get the approved address for a single NFT.
*
* @param {string} tokenId ID of the NFT to query the approval of.
* @returns {Promise} return address of approval
* @memberof ERC721
*/
getApproved(tokenId: string): Promise;
/**
* Checks if `operator` is an approved operator for `owner`.
*
* @param {string} owner The address that owns the NFTs.
* @param {string} operator The address that acts on behalf of the owner.
* @returns {Promise} return true or false
* @memberof ERC721
*/
isApprovedForAll(owner: string, operator: string): Promise;
/**
* Returns the count of all existing NFTokens.
*
* @returns {Promise} count of all existing NFTokens.
* @memberof ERC721
*/
totalSupply(): Promise;
/**
* Returns NFT ID by its index.
*
* @param {string} index A counter less than `totalSupply()`.
* @returns {Promise} token id
* @memberof ERC721
*/
tokenByIndex(index: string): Promise;
/**
* returns the n-th NFT ID from a list of owner's tokens.
*
* @param {string} owner Token owner's address.
* @param {string} index Index number representing n-th token in owner's list of tokens.
* @returns {Promise} token id
* @memberof ERC721
*/
tokenOfOwnerByIndex(owner: string, index: string): Promise;
}
export default ERC721;