import '../../../assert/js/assert.js';
import '../../../globals.js';
/**
 * RenderProgram for a triangular barycentric blend.
 *
 * NOTE: Does not apply perspective correction, is purely a 2d blend.
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import Matrix3 from '../../../dot/js/Matrix3.js';
import Vector2 from '../../../dot/js/Vector2.js';
import Vector4 from '../../../dot/js/Vector4.js';
import { ByteEncoder, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, SerializedRenderProgram } from '../imports.js';
export declare enum RenderBarycentricBlendAccuracy {
    Accurate = 0,
    PixelCenter = 1
}
export default class RenderBarycentricBlend extends RenderProgram {
    readonly pointA: Vector2;
    readonly pointB: Vector2;
    readonly pointC: Vector2;
    readonly accuracy: RenderBarycentricBlendAccuracy;
    readonly a: RenderProgram;
    readonly b: RenderProgram;
    readonly c: RenderProgram;
    readonly logic: RenderBarycentricBlendLogic;
    constructor(pointA: Vector2, pointB: Vector2, pointC: Vector2, accuracy: RenderBarycentricBlendAccuracy, a: RenderProgram, b: RenderProgram, c: RenderProgram, logic?: RenderBarycentricBlendLogic);
    getName(): string;
    withChildren(children: RenderProgram[]): RenderBarycentricBlend;
    transformed(transform: Matrix3): RenderProgram;
    protected equalsTyped(other: this): boolean;
    protected getSimplified(children: RenderProgram[]): RenderProgram | null;
    evaluate(context: RenderEvaluationContext): Vector4;
    writeInstructions(instructions: RenderInstruction[]): void;
    serialize(): SerializedRenderBarycentricBlend;
    static deserialize(obj: SerializedRenderBarycentricBlend): RenderBarycentricBlend;
}
export declare class RenderBarycentricBlendLogic {
    readonly det: number;
    readonly diffA: Vector2;
    readonly diffB: Vector2;
    readonly pointC: Vector2;
    readonly accuracy: RenderBarycentricBlendAccuracy;
    constructor(det: number, diffA: Vector2, diffB: Vector2, pointC: Vector2, accuracy: RenderBarycentricBlendAccuracy);
    static from(pointA: Vector2, pointB: Vector2, pointC: Vector2, accuracy: RenderBarycentricBlendAccuracy): RenderBarycentricBlendLogic;
    equals(other: RenderBarycentricBlendLogic): boolean;
    apply(output: Vector4, context: RenderEvaluationContext, aColor: Vector4, bColor: Vector4, cColor: Vector4): void;
}
export declare class RenderInstructionBarycentricBlend extends RenderInstruction {
    readonly logic: RenderBarycentricBlendLogic;
    constructor(logic: RenderBarycentricBlendLogic);
    toString(): string;
    equals(other: RenderInstruction, areLocationsEqual: (a: RenderInstructionLocation, b: RenderInstructionLocation) => boolean): boolean;
    execute(stack: RenderExecutionStack, context: RenderEvaluationContext, executor: RenderExecutor): void;
    writeBinary(encoder: ByteEncoder, getOffset: (location: RenderInstructionLocation) => number): void;
    static fromBinary(encoder: ByteEncoder, offset: number, getLocation: (offset: number) => RenderInstructionLocation): RenderInstructionBarycentricBlend;
    getBinaryLength(): number;
}
export type SerializedRenderBarycentricBlend = {
    type: 'RenderBarycentricBlend';
    pointA: number[];
    pointB: number[];
    pointC: number[];
    accuracy: RenderBarycentricBlendAccuracy;
    a: SerializedRenderProgram;
    b: SerializedRenderProgram;
    c: SerializedRenderProgram;
};
//# sourceMappingURL=RenderBarycentricBlend.d.ts.map