export declare const SigHashType: { readonly ALL: 1; readonly NONE: 2; readonly SINGLE: 3; readonly ALL_ANYONECANPAY: number; readonly NONE_ANYONECANPAY: number; readonly SINGLE_ANYONECANPAY: number; }; export type SigHashType = number; type SignatureType = 'segwitV0' | 'segwitV1' | 'p2shSignature'; export declare class AddSignature { _scriptType: SignatureType; _sigHashType: SigHashType; constructor(type: SignatureType, sigHashType: SigHashType); get scriptType(): SignatureType; get sigHashType(): number; toString(): string; static fromString(str: string): Promise; } export {};