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<{
    value: z.ZodNumber;
    sink: z.ZodDefault<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.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>;
export declare const methodsZ: {
    set: z.ZodFunction<z.ZodTuple<[z.ZodNumber], null>, z.ZodVoid>;
};
interface InternalState {
    source: telem.NumberSource;
    sink: telem.NumberSink;
    stopListening: destructor.Destructor;
}
export declare class Setpoint extends aether.Leaf<typeof stateZ, InternalState, typeof methodsZ> implements diagram.Element, aether.HandlersFromSchema<typeof methodsZ> {
    static readonly TYPE = "Setpoint";
    static readonly METHODS: {
        set: z.ZodFunction<z.ZodTuple<[z.ZodNumber], null>, z.ZodVoid>;
    };
    schema: z.ZodObject<{
        value: z.ZodNumber;
        sink: z.ZodDefault<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.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>;
    methods: {
        set: z.ZodFunction<z.ZodTuple<[z.ZodNumber], null>, z.ZodVoid>;
    };
    afterUpdate(ctx: aether.Context): void;
    set(value: number): void;
    private updateValue;
    afterDelete(): void;
}
export declare const REGISTRY: aether.ComponentRegistry;
export {};
//# sourceMappingURL=setpoint.d.ts.map