/// <reference types="node" />
import { BufferReader } from '@node-dlc/bufio';
/**
 * ScriptWitness is the data for a witness element in a witness stack.
 * An empty witness_stack is an error, as every input must be Segwit.
 * Witness elements should not include their length as part of the witness
 * data.
 */
export declare class ScriptWitnessV0 {
    /**
     * Deserializes an script_witness_v0 message
     * @param buf
     */
    static deserialize(buf: Buffer): ScriptWitnessV0;
    static getWitness(reader: BufferReader): Buffer;
    length: number;
    witness: Buffer;
    /**
     * Converts script_witness_v0 to JSON
     */
    toJSON(): IScriptWitnessV0JSON;
    /**
     * Serializes the script_witness_v0 message into a Buffer
     */
    serialize(): Buffer;
}
export interface IScriptWitnessV0JSON {
    witness: string;
}
