import { Gain } from "../core/context/Gain"; import { Param } from "../core/context/Param"; import { Signal, SignalOptions } from "../signal/Signal"; /** * Subtract the signal connected to the input is subtracted from the signal connected * The subtrahend. * * @example * var sub = new Subtract(1); * var sig = new Tone.Signal(4).connect(sub); * //the output of sub is 3. * @example * var sub = new Subtract(); * var sigA = new Tone.Signal(10); * var sigB = new Tone.Signal(2.5); * sigA.connect(sub); * sigB.connect(sub.subtrahend); * //output of sub is 7.5 * @category Signal */ export declare class Subtract extends Signal { override: boolean; readonly name: string; /** * the summing node */ private _sum; readonly input: Gain; readonly output: Gain; /** * Negate the input of the second input before connecting it to the summing node. */ private _neg; /** * The value which is subtracted from the main signal */ subtrahend: Param; /** * @param value The value to subtract from the incoming signal. If the value * is omitted, it will subtract the second signal from the first. */ constructor(value?: number); constructor(options?: Partial>); static getDefaults(): SignalOptions; dispose(): this; }