import { SignerSupplier } from '../core/signature'; import { PayloadType } from '../core/enums'; import { Message } from '../core/message'; import { UnencodedActionPayload } from '../core/payload'; import { AnySignatureType } from '../core/signature'; import { Base64String } from '../utils/types'; export interface PayloadMsgOptions { challenge: string; signatureType: AnySignatureType; identifier: Uint8Array; signer: SignerSupplier; signature: Base64String; } /** * `PayloadMsg` class creates a call message payload that can be sent over GRPC. */ export declare class PayloadMsg { payload: UnencodedActionPayload; challenge: string; signatureType: AnySignatureType; identifier: Uint8Array; signer: SignerSupplier; signature: Base64String; /** * Initializes a new `PayloadMsg` instance. * * @param {PayloadMsgOptions} options - Parameters interface to build a payload message. */ constructor(payload: UnencodedActionPayload, options: Partial); /** * Static factory method to create a new Payload instance. * * @param kwil - The Kwil client. * @param options - The options to configure the Payload instance. */ static createMsg(payload: UnencodedActionPayload, options: Partial): PayloadMsg; /** * Build the payload structure for a message. */ buildMsg(): Promise; /** * Adds the caller's sender address to the message. * * @param {Message} msg - The message to sign. See {@link Message} for more information. * @param {Uint8Array} identifier - The identifier (e.g. wallet address, public key, etc) for the signature, represented as bytes. * @param {AnySignatureType} signatureType - The signature type being used. See {@link SignatureType} for more information. * @param {string} description - The description to be included in the signature. * @returns Message - A promise that resolves to the signed message. * @throws {Error} - If the the signer is not an Ethers Signer or a function that accepts and returns a Uint8Array. */ private static authMsg; }