/// import { Transaction } from '../transaction/transaction'; export declare const SIGHASH_ALL = 1; export declare const SIGHASH_NONE = 2; export declare const SIGHASH_SINGLE = 3; export declare const SIGHASH_ANYONECANPAY = 128; export declare class Signature { signature: Buffer; hashType: number; constructor(signature: Buffer, hashType?: number); getHashType(): number; anyoneCanPay(): boolean; toDER(): Buffer; toBuffer(): Buffer; static toDER(x: Buffer): Buffer; static fromDER(x: Buffer): Buffer; static fromBuffer(buffer: Buffer): Signature; static hash(tx: Transaction, inputIndex: number, prevOutScript: string | Buffer, hashType?: number): Buffer; }