import type { Network, SignerAsync } from "@shapeshiftoss/bitcoinjs-lib"; import { ECPairInterface } from "ecpair"; import { SecP256K1 } from "../core"; import { ByteArray } from "../types"; export type ECPairInterfaceAsync = Omit & Pick; export declare class ECPairAdapter implements SignerAsync, ECPairInterfaceAsync { protected readonly _isolatedKey: SecP256K1.ECDSAKey; readonly _publicKey: SecP256K1.CurvePoint; readonly _network: Network | undefined; compressed: boolean; lowR: boolean; protected constructor(isolatedKey: SecP256K1.ECDSAKey, publicKey: SecP256K1.CurvePoint, network?: Network); /** * If you're inheriting from this class, be sure to call `await ECPairAdapter.prepare()` in your `create()` overload. */ protected static prepare(): Promise; static create(isolatedKey: SecP256K1.ECDSAKey, network?: Network): Promise; get network(): Network; get ecdsaSign(): { (digestAlgorithm: null, message: ByteArray<32>): Promise>; (digestAlgorithm: null, message: ByteArray<32>, counter: import("../types").Uint32): Promise | undefined>; (digestAlgorithm: import("../core/digest").AlgorithmName<32>, message: Uint8Array): Promise>; (digestAlgorithm: import("../core/digest").AlgorithmName<32>, message: Uint8Array, counter: import("../types").Uint32): Promise | undefined>; }; get ecdh(): any; get ecdhRaw(): any; sign(hash: Uint8Array, lowR?: boolean): Promise; get publicKey(): Buffer & SecP256K1.CurvePoint; getPublicKey(): Buffer & SecP256K1.CurvePoint; toWIF(): never; verify(hash: Uint8Array, signature: Uint8Array): boolean; } export default ECPairAdapter; //# sourceMappingURL=bitcoin.d.ts.map