import type { Inspect, Registry } from '@polkadot/types-codec/types'; import type { HexString } from '@polkadot/util/types'; import type { ExtrinsicEra } from '../../interfaces/extrinsics'; import type { Hash } from '../../interfaces/runtime'; import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types'; import { Bytes, Struct } from '@polkadot/types-codec'; /** * @name GenericExtrinsicPayloadV4 * @description * A signing payload for an [[Extrinsic]]. For the final encoding, it is * variable length based on the contents included */ export declare class GenericExtrinsicPayloadV4 extends Struct { #private; constructor(registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString); /** * @description Returns a breakdown of the hex encoding for this Codec */ inspect(): Inspect; /** * @description The block [[Hash]] the signature applies to (mortal/immortal) */ get blockHash(): Hash; /** * @description The [[ExtrinsicEra]] */ get era(): ExtrinsicEra; /** * @description The genesis [[Hash]] the signature applies to (mortal/immortal) */ get genesisHash(): Hash; /** * @description The [[Bytes]] contained in the payload */ get method(): Bytes; /** * @description The [[Index]] */ get nonce(): ICompact; /** * @description The specVersion for this signature */ get specVersion(): INumber; /** * @description The tip [[Balance]] */ get tip(): ICompact; /** * @description The transactionVersion for this signature */ get transactionVersion(): INumber; /** * @description * The (optional) asset id for this signature for chains that support transaction fees in assets */ get assetId(): IOption; /** * @description Sign the payload with the keypair */ sign(signerPair: IKeyringPair): Uint8Array; }