import type { Algebra } from "@ot-builder/prelude";
import type { VarianceDim } from "./dimension";
import type { VarianceInstance } from "./instance";
import type { VarianceMaster, VarianceMasterSet } from "./master";
/**
 * VariableOps<A,M,X> contains various methods to manipulate variable values (X)
 */
export interface VariableOps<A extends VarianceDim, M extends VarianceMaster<A>, X> extends Algebra.VectorSpace<X, number> {
    originOf(x: X): number;
    varianceDeltaOf(x: X, m: M): number;
    varianceOf(x: X): Iterable<[M, number]>;
    removeOrigin(x: X): X;
    evaluate(a: X, instance: VarianceInstance<A>): number;
    equal(a: X, b: X, err?: number): boolean;
    sum(...xs: X[]): X;
    isConstant(x: X): boolean;
    isZero(x: X): boolean;
}
export interface VariableCreator<A extends VarianceDim, M extends VarianceMaster<A>, X> {
    readonly masterSet: VarianceMasterSet<A, M>;
    create(origin?: number, variance?: Iterable<[M, number]>): X;
    make(...xs: (X | [M, number])[]): X;
}
//# sourceMappingURL=value.d.ts.map