import { Destructor } from '@synnaxlabs/x';
import { z } from 'zod';
import { aether } from '../../../aether/aether';
import { status } from '../../../status/aether';
import { telem } from '../../../telem/aether';
import { diagram } from '../../diagram/aether';
export declare const toggleStateZ: z.ZodObject<{
    triggered: z.ZodBoolean;
    enabled: z.ZodBoolean;
    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<"boolean">;
    }, 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<"boolean">;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export type ToggleState = z.input<typeof toggleStateZ>;
interface InternalState {
    source: telem.BooleanSource;
    sink: telem.BooleanSink;
    addStatus: status.Adder;
    stopListening: Destructor;
}
export declare class Toggle extends aether.Leaf<typeof toggleStateZ, InternalState> implements diagram.Element {
    static readonly TYPE = "Toggle";
    schema: z.ZodObject<{
        triggered: z.ZodBoolean;
        enabled: z.ZodBoolean;
        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<"boolean">;
        }, 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<"boolean">;
        }, z.core.$strip>>>;
    }, z.core.$strip>;
    afterUpdate(ctx: aether.Context): void;
    private updateEnabledState;
    afterDelete(): void;
}
export declare const REGISTRY: aether.ComponentRegistry;
export {};
//# sourceMappingURL=toggle.d.ts.map