import { Uish, Uu } from 'pollenium-uvaursi'; import { SignatureStruct, Signature } from 'pollenium-ilex'; import { Address, Uintable, Uint256 } from 'pollenium-buttercup'; export interface PermitRequestResult { id: number; createdAt: number; holder: Uint8Array; spender: Uint8Array; nonce: Uint8Array; signatureV: Uint8Array; signatureR: Uint8Array; signatureS: Uint8Array; } export interface PermitRequestStruct { id?: number; createdAt?: number; holder: Uish; spender: Uish; nonce: Uintable; signature: SignatureStruct; } export declare class PermitRequest { readonly holder: Address; readonly spender: Address; readonly nonce: Uint256; readonly signature: Signature; private encoding; constructor(struct: PermitRequestStruct); getEncoding(): Uu; getIsSignatureValid(): boolean; static gen(struct: { holderPrivateKey: Uish; spender: Uish; nonce: Uintable; }): PermitRequest; static fromEncoding(encodingUish: Uish): PermitRequest; }