import { Network } from './networks'; import * as networks from './networks'; export { networks }; import * as v from 'valibot'; declare const ECPairOptionsSchema: v.OptionalSchema, undefined>; readonly network: v.OptionalSchema, v.InstanceSchema], undefined>; readonly bech32: v.StringSchema; readonly bip32: v.ObjectSchema<{ readonly public: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly private: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; }, undefined>; readonly pubKeyHash: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly scriptHash: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly wif: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; }, undefined>, undefined>; readonly rng: v.OptionalSchema, v.TransformAction Uint8Array>]>, undefined>; }, undefined>, undefined>; type ECPairOptions = v.InferOutput; export interface Signer { publicKey: Uint8Array; network?: any; sign(hash: Uint8Array, lowR?: boolean): Uint8Array; } export interface SignerAsync { publicKey: Uint8Array; network?: any; sign(hash: Uint8Array, lowR?: boolean): Promise; } export interface ECPairInterface extends Signer { compressed: boolean; network: Network; lowR: boolean; privateKey?: Uint8Array; toWIF(): string; tweak(t: Uint8Array): ECPairInterface; verify(hash: Uint8Array, signature: Uint8Array): boolean; verifySchnorr(hash: Uint8Array, signature: Uint8Array): boolean; signSchnorr(hash: Uint8Array): Uint8Array; } export interface ECPairAPI { isPoint(maybePoint: any): boolean; fromPrivateKey(buffer: Uint8Array, options?: ECPairOptions): ECPairInterface; fromPublicKey(buffer: Uint8Array, options?: ECPairOptions): ECPairInterface; fromWIF(wifString: string, network?: Network | Network[]): ECPairInterface; makeRandom(options?: ECPairOptions): ECPairInterface; } export interface TinySecp256k1Interface { isPoint(p: Uint8Array): boolean; pointCompress(p: Uint8Array, compressed?: boolean): Uint8Array; isPrivate(d: Uint8Array): boolean; pointFromScalar(d: Uint8Array, compressed?: boolean): Uint8Array | null; xOnlyPointAddTweak(p: Uint8Array, tweak: Uint8Array): XOnlyPointAddTweakResult | null; privateAdd(d: Uint8Array, tweak: Uint8Array): Uint8Array | null; privateNegate(d: Uint8Array): Uint8Array; sign(h: Uint8Array, d: Uint8Array, e?: Uint8Array): Uint8Array; signSchnorr?(h: Uint8Array, d: Uint8Array, e?: Uint8Array): Uint8Array; verify(h: Uint8Array, Q: Uint8Array, signature: Uint8Array, strict?: boolean): boolean; verifySchnorr?(h: Uint8Array, Q: Uint8Array, signature: Uint8Array): boolean; } interface XOnlyPointAddTweakResult { parity: 1 | 0; xOnlyPubkey: Uint8Array; } export declare function ECPairFactory(ecc: TinySecp256k1Interface): ECPairAPI;