export interface ECSignature { v: number; r: string; s: string; } export interface Signature extends ECSignature { signatureType: number; } export interface EIP712TypedDataField { name: string; type: string; } export interface EIP712Types { [key: string]: EIP712TypedDataField[]; } export interface EIP712Domain { name: string; version: string; chainId: number; verifyingContract: string; } export type EIP712MessageValue = string | number | unknown[] | EIP712Message; export interface EIP712Message { [key: string]: EIP712MessageValue; } export interface EIP712TypedData { types: EIP712Types; domain: EIP712Domain; message: EIP712Message; primaryType: string; } export declare function createEIP712TypedData(primaryType: string, types: EIP712Types, message: EIP712Message, domain: EIP712Domain): EIP712TypedData; export declare function joinECSignature(sign: ECSignature): string; export declare function splitECSignature(signature: string): ECSignature; export declare function ecSignHash(hash: string, privateKey: string): ECSignature; export declare function ecSignMessage(message: string, privateKey: string): ECSignature; export declare function signMessage(message: string, privateKey: string): ECSignature; export declare function signTypedData(typedData: EIP712TypedData, privateKey: string): ECSignature; export declare const EIP712_DOMAIN_TYPEHASH = "0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f"; export declare function getEIP712DomainHash(eip712Domain: EIP712Domain, domainTypeHash?: string): string; export declare function getEIP712TypeHash(primaryType: string, primaryStructAbi: EIP712TypedDataField[], referencedStructs?: EIP712Types): string; export declare function getEIP712StructHash(primaryType: string, types: EIP712Types | undefined, values: any): string; export declare function getEIP712Hash(typeData: EIP712TypedData): string; export declare function privateKeyToAddress(privateKey: string): string; export declare function privateKeysToAddress(privateKeys: string[]): {};