import { Destructor } from '@synnaxlabs/x';
import { z } from 'zod';
import { aether } from '../../../aether/aether';
import { telem } from '../../../telem/aether';
import { diagram } from '../../diagram/aether';
export declare const stateZ: z.ZodObject<{
    trigger: z.ZodNumber;
    command: z.ZodOptional<z.ZodNumber>;
    value: z.ZodNumber;
    sink: z.ZodDefault<z.ZodOptional<z.ZodObject<{
        type: z.ZodString;
        props: z.ZodAny;
        transfer: z.ZodOptional<z.ZodArray<z.ZodCustom<ArrayBuffer, ArrayBuffer>>>;
        variant: z.ZodLiteral<"sink">;
        valueType: z.ZodLiteral<"number">;
    }, z.core.$strip>>>;
    source: z.ZodDefault<z.ZodOptional<z.ZodObject<{
        type: z.ZodString;
        props: z.ZodAny;
        transfer: z.ZodOptional<z.ZodArray<z.ZodCustom<ArrayBuffer, ArrayBuffer>>>;
        variant: z.ZodLiteral<"source">;
        valueType: z.ZodLiteral<"number">;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export type SetpointState = z.input<typeof stateZ>;
interface InternalState {
    source: telem.NumberSource;
    sink: telem.NumberSink;
    stopListening: Destructor;
    prevTrigger: number;
}
export declare class Setpoint extends aether.Leaf<typeof stateZ, InternalState> implements diagram.Element {
    static readonly TYPE = "Setpoint";
    schema: z.ZodObject<{
        trigger: z.ZodNumber;
        command: z.ZodOptional<z.ZodNumber>;
        value: z.ZodNumber;
        sink: z.ZodDefault<z.ZodOptional<z.ZodObject<{
            type: z.ZodString;
            props: z.ZodAny;
            transfer: z.ZodOptional<z.ZodArray<z.ZodCustom<ArrayBuffer, ArrayBuffer>>>;
            variant: z.ZodLiteral<"sink">;
            valueType: z.ZodLiteral<"number">;
        }, z.core.$strip>>>;
        source: z.ZodDefault<z.ZodOptional<z.ZodObject<{
            type: z.ZodString;
            props: z.ZodAny;
            transfer: z.ZodOptional<z.ZodArray<z.ZodCustom<ArrayBuffer, ArrayBuffer>>>;
            variant: z.ZodLiteral<"source">;
            valueType: z.ZodLiteral<"number">;
        }, z.core.$strip>>>;
    }, z.core.$strip>;
    afterUpdate(ctx: aether.Context): void;
    private updateValue;
    afterDelete(): void;
}
export declare const REGISTRY: aether.ComponentRegistry;
export {};
//# sourceMappingURL=setpoint.d.ts.map