import { secp256k1 } from '@noble/curves/secp256k1.js'; import BN from 'bn.js'; export { secp256k1 }; /** A point on the secp256k1 curve (noble-curves projective point). */ export type ECPoint = typeof secp256k1.Point.BASE; /** Curve order n and field prime p, as native bigint values. */ export declare const CURVE_N: bigint; export declare const CURVE_P: bigint; export declare const G: import("@noble/curves/abstract/weierstrass").WeierstrassPoint; /** BN form of the curve order, for arithmetic that stays in bn.js. */ export declare const N_BN: BN; export declare function bnToBigint(b: BN): bigint; export declare function bigintToBn(x: bigint): BN; /** Encode a coordinate (x or y) as a fixed-width 32-byte big-endian buffer. */ export declare function coordToBuffer(x: bigint): Buffer; /** * Construct a curve point from an x coordinate plus the parity of y, * mirroring elliptic's curve.pointFromX. Throws when x is not on the curve. */ export declare function pointFromX(x: bigint, isYOdd: boolean): ECPoint;