import { bsv } from "scryptlib"; import { SignatureResponse } from "../../bsv/abstract-signer"; import { ByteString, Sig, SigHashType } from "../builtins/types"; import { SignatureHashType, SignatureOption } from "../../bsv/types"; export declare function getDummySig(): Sig; export declare function toNumber(sighashType: SigHashType): number; export declare function findSig(sigResponses: SignatureResponse[], pubKeyOrAddr: bsv.PublicKey | bsv.Address, sigHashType?: SignatureHashType): Sig; export declare function findSigs(sigResponses: SignatureResponse[], queries: (bsv.PublicKey | bsv.Address | SignatureOption)[]): Sig[]; export declare function mapIter(iterable: IterableIterator, callback: (x: any) => any): Generator; export declare function isInNodeEnv(): boolean; export declare function alterFileExt(filename: string, toExt: string, fromExt?: string): string; export declare function camelCaseCapitalized(str: string): string; /** * convert ByteString to utf8 string * @param bs ByteString * @returns utf8 string */ export declare function fromByteString(bs: ByteString): string; export declare function checkTxFee(tx: bsv.Transaction, feePerKb: number): boolean;