>);
/**
* A getter for the number of 'unapproved' Messages in this.messages.
*
* @returns The number of 'unapproved' Messages in this.messages.
*/
getUnapprovedMessagesCount(): number;
/**
* A getter for the 'unapproved' Messages in state messages.
*
* @returns An index of Message ids to Messages, for all 'unapproved' Messages in this.messages.
*/
getUnapprovedMessages(): {
[key: string]: M;
};
/**
* Adds a passed Message to this.messages, and calls this.saveMessageList() to save
* the unapproved Messages from that list to this.messages.
*
* @param message - The Message to add to this.messages.
*/
addMessage(message: M): void;
/**
* Returns a specified Message.
*
* @param messageId - The id of the Message to get.
* @returns The Message with the id that matches the passed messageId, or undefined
* if no Message has that id.
*/
getMessage(messageId: string): M | undefined;
/**
* Approves a Message. Sets the message status via a call to this.setMessageStatusApproved,
* and returns a promise with any the message params modified for proper signing.
*
* @param messageParams - The messageParams to be used when signing method is called,
* plus data added by MetaMask.
* @returns Promise resolving to the messageParams with the metamaskId property removed.
*/
approveMessage(messageParams: PM): Promise;
/**
* Sets a Message status to 'approved' via a call to this.setMessageStatus.
*
* @param messageId - The id of the Message to approve.
*/
setMessageStatusApproved(messageId: string): void;
/**
* Sets a Message status to 'signed' via a call to this.setMessageStatus and updates
* that Message in this.messages by adding the raw signature data of the signature
* request to the Message.
*
* @param messageId - The id of the Message to sign.
* @param rawSig - The raw data of the signature request.
*/
setMessageStatusSigned(messageId: string, rawSig: string): void;
/**
* Removes the metamaskId property from passed messageParams and returns a promise which
* resolves the updated messageParams
*
* @param messageParams - The messageParams to modify
* @returns Promise resolving to the messageParams with the metamaskId property removed
*/
abstract prepMessageForSigning(messageParams: PM): Promise
;
/**
* Sets a Message status to 'rejected' via a call to this.setMessageStatus.
*
* @param messageId - The id of the Message to reject.
*/
rejectMessage(messageId: string): void;
}
export default AbstractMessageManager;