///
///
import BN from "bn.js";
import { ValidationFailedError } from "../error";
export declare class InvalidSignatureFormatError extends ValidationFailedError {
}
declare function normalizePrivateKey(input: string): Buffer;
declare function normalizePublicKey(input: string): Buffer;
declare function getCompactBase64PublicKey(publicKey: string): string;
declare function getNonCompactHexPublicKey(publicKey: string): string;
declare function getPublicKey(privateKey: string): string;
declare function getEthAddress(publicKey: string): string;
declare function isLowercasedEthAddress(address: string): boolean;
declare function isChecksumedEthAddress(address: string): boolean;
declare function normalizeEthAddress(address: string): string;
export interface Secp256k1Signature {
r: BN;
s: BN;
recoveryParam: number | undefined;
chainId?: number | "delete";
}
declare function parseSecp256k1Signature(s: string): Secp256k1Signature;
export declare function normalizeSecp256k1Signature(s: string): Secp256k1Signature;
export declare function flipSignatureParity(signatureObj: T): T;
declare function calculateKeccak256(data: Buffer): Buffer;
declare function getSignature(obj: object, privateKey: Buffer): string;
declare function getDERSignature(obj: object, privateKey: Buffer): string;
declare function recoverPublicKey(signature: string, obj: object): string;
declare function isValid(signature: string, obj: object | string, publicKey: string): boolean;
declare function genKeyPair(): {
privateKey: string;
publicKey: string;
};
declare const _default: {
readonly calculateKeccak256: typeof calculateKeccak256;
readonly genKeyPair: typeof genKeyPair;
readonly getCompactBase64PublicKey: typeof getCompactBase64PublicKey;
readonly getNonCompactHexPublicKey: typeof getNonCompactHexPublicKey;
readonly getEthAddress: typeof getEthAddress;
readonly getPublicKey: typeof getPublicKey;
readonly getSignature: typeof getSignature;
readonly getDERSignature: typeof getDERSignature;
readonly isChecksumedEthAddress: typeof isChecksumedEthAddress;
readonly isLowercasedEthAddress: typeof isLowercasedEthAddress;
readonly isValid: typeof isValid;
readonly normalizeEthAddress: typeof normalizeEthAddress;
readonly normalizePrivateKey: typeof normalizePrivateKey;
readonly normalizePublicKey: typeof normalizePublicKey;
readonly normalizeSecp256k1Signature: typeof normalizeSecp256k1Signature;
readonly parseSecp256k1Signature: typeof parseSecp256k1Signature;
readonly recoverPublicKey: typeof recoverPublicKey;
};
export default _default;
//# sourceMappingURL=eth.d.ts.map