import { type Destructor } from "@synnaxlabs/x";
import { z } from "zod";
import { aether } from '../../../aether/aether';
import { status } from '../../../status/aether';
import { telem } from '../../../telem/aether';
import { type 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;
        variant: z.ZodLiteral<"sink">;
        transfer: z.ZodOptional<z.ZodArray<z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, "many">>;
        valueType: z.ZodLiteral<"boolean">;
    }, "strip", z.ZodTypeAny, {
        type: string;
        valueType: "boolean";
        variant: "sink";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    }, {
        type: string;
        valueType: "boolean";
        variant: "sink";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    }>>>;
    source: z.ZodDefault<z.ZodOptional<z.ZodObject<{
        type: z.ZodString;
        props: z.ZodAny;
        variant: z.ZodLiteral<"source">;
        transfer: z.ZodOptional<z.ZodArray<z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, "many">>;
        valueType: z.ZodLiteral<"boolean">;
    }, "strip", z.ZodTypeAny, {
        type: string;
        valueType: "boolean";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    }, {
        type: string;
        valueType: "boolean";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    }>>>;
}, "strip", z.ZodTypeAny, {
    source: {
        type: string;
        valueType: "boolean";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    };
    enabled: boolean;
    sink: {
        type: string;
        valueType: "boolean";
        variant: "sink";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    };
    triggered: boolean;
}, {
    enabled: boolean;
    triggered: boolean;
    sink?: {
        type: string;
        valueType: "boolean";
        variant: "sink";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    } | undefined;
    source?: {
        type: string;
        valueType: "boolean";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    } | undefined;
}>;
export type ToggleState = z.input<typeof toggleStateZ>;
interface InternalState {
    source: telem.BooleanSource;
    sink: telem.BooleanSink;
    addStatus: status.Aggregate;
    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;
            variant: z.ZodLiteral<"sink">;
            transfer: z.ZodOptional<z.ZodArray<z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, "many">>;
            valueType: z.ZodLiteral<"boolean">;
        }, "strip", z.ZodTypeAny, {
            type: string;
            valueType: "boolean";
            variant: "sink";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        }, {
            type: string;
            valueType: "boolean";
            variant: "sink";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        }>>>;
        source: z.ZodDefault<z.ZodOptional<z.ZodObject<{
            type: z.ZodString;
            props: z.ZodAny;
            variant: z.ZodLiteral<"source">;
            transfer: z.ZodOptional<z.ZodArray<z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, "many">>;
            valueType: z.ZodLiteral<"boolean">;
        }, "strip", z.ZodTypeAny, {
            type: string;
            valueType: "boolean";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        }, {
            type: string;
            valueType: "boolean";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        }>>>;
    }, "strip", z.ZodTypeAny, {
        source: {
            type: string;
            valueType: "boolean";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        };
        enabled: boolean;
        sink: {
            type: string;
            valueType: "boolean";
            variant: "sink";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        };
        triggered: boolean;
    }, {
        enabled: boolean;
        triggered: boolean;
        sink?: {
            type: string;
            valueType: "boolean";
            variant: "sink";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        } | undefined;
        source?: {
            type: string;
            valueType: "boolean";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        } | undefined;
    }>;
    afterUpdate(): Promise<void>;
    private reportError;
    private updateEnabledState;
    afterDelete(): Promise<void>;
    private internalAfterDelete;
    render(): Promise<void>;
}
export declare const REGISTRY: aether.ComponentRegistry;
export {};
