import type { Registry } from '@polkadot/types-codec/types'; import type { HexString } from '@polkadot/util/types'; import type { Address, BlockHash, Call, ExtrinsicEra, Hash } from '../interfaces'; import type { Codec, ICompact, INumber, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types'; import { Struct, Text, Vec } from '@polkadot/types-codec'; export interface SignerPayloadType extends Codec { address: Address; blockHash: Hash; blockNumber: INumber; era: ExtrinsicEra; genesisHash: Hash; method: Call; nonce: ICompact; runtimeVersion: IRuntimeVersion; signedExtensions: Vec; tip: ICompact; version: INumber; } /** * @name GenericSignerPayload * @description * A generic signer payload that can be used for serialization between API and signer */ export declare class GenericSignerPayload extends Struct implements ISignerPayload, SignerPayloadType { #private; constructor(registry: Registry, value?: HexString | { [x: string]: unknown; } | Map | unknown[]); get address(): Address; get blockHash(): BlockHash; get blockNumber(): INumber; get era(): ExtrinsicEra; get genesisHash(): BlockHash; get method(): Call; get nonce(): ICompact; get runtimeVersion(): IRuntimeVersion; get signedExtensions(): Vec; get tip(): ICompact; get version(): INumber; /** * @description Creates an representation of the structure as an ISignerPayload JSON */ toPayload(): SignerPayloadJSON; /** * @description Creates a representation of the payload in raw Exrinsic form */ toRaw(): SignerPayloadRaw; }