import { AccountTransactionHeader, Base58String } from '../../index.js'; import { AccountAddress, Energy } from '../../types/index.js'; /** * Transaction header for the intermediary state of account transactions, i.e. prior to being signing. */ export type Header = Partial & { /** a base energy amount, this amount excludes transaction size and signature costs */ executionEnergyAmount: Energy.Type; /** The number of signatures the transaction can hold. If `undefined`, this will be defined at the time of signing. */ numSignatures?: bigint; sponsor?: SponsorDetails; }; type SponsorDetails = { account: AccountAddress.Type; /** The number of signatures the transaction can hold. */ numSignatures: bigint; }; export type HeaderJSON = { sender?: Base58String; nonce?: bigint; expiry?: number; executionEnergyAmount: bigint; numSignatures?: number; sponsor?: SponsorDetailsJSON; }; type SponsorDetailsJSON = { account: Base58String; numSignatures: number; }; export declare function headerToJSON(header: Header): HeaderJSON; export declare function headerFromJSON(json: unknown): Header; export {};