import { SignOptions, Signer } from '../signer.js'; import { PrivateKey, Network } from '@opcat-labs/opcat'; import { Signer as PSigner } from '../psbt/psbt.js'; export declare class PsbtSigner implements PSigner { private readonly privateKey; constructor(privateKey: PrivateKey); get publicKey(): Uint8Array; get network(): Network; sign(hash: Uint8Array, _lowR?: boolean): Uint8Array; getPublicKey?(): Uint8Array; } /** * An implemention of a simple signer which should just be used in nodejs environments. * @category Signer */ export declare class DefaultSigner implements Signer { private readonly privateKey; private readonly keyPair; readonly network: Network; constructor(privateKey?: PrivateKey); /** * Gets the address derived from the signer's private key and network. * @returns A promise resolving to the address string. */ getAddress(): Promise; /** * Returns the public key in hexadecimal format derived from the private key. * @returns A promise that resolves to the public key as a hex string. */ getPublicKey(): Promise; /** * Signs a PSBT (Partially Signed Bitcoin Transaction) with the signer's key pair. * * @param psbtHex - The PSBT in hexadecimal format to be signed * @param options - Optional signing configuration including inputs to sign * @returns Promise resolving to the signed PSBT in hexadecimal format * * @remarks * - If options are provided, only specified inputs matching the signer's address/public key will be signed * - If no options are provided, all inputs will be signed with SIGHASH_ALL */ signPsbt(psbtHex: string, options?: SignOptions): Promise; /** * Signs multiple PSBTs (Partially Signed Bitcoin Transactions) in parallel. * @param reqs Array of objects containing PSBT hex strings and optional signing options * @returns Promise resolving to an array of signed PSBT hex strings */ signPsbts(reqs: { psbtHex: string; options?: SignOptions; }[]): Promise; } //# sourceMappingURL=defaultSigner.d.ts.map