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 lightStateZ: z.ZodObject<{
    enabled: z.ZodBoolean;
    source: z.ZodDefault<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
        type: z.ZodString;
        variant: z.ZodEnum<["source", "sink", "source-transformer", "sink-transformer"]>;
        valueType: z.ZodString;
        props: z.ZodAny;
        transfer: z.ZodOptional<z.ZodArray<z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, "many">>;
    }, {
        variant: z.ZodLiteral<"source">;
    }>, {
        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;
}, {
    enabled: boolean;
    source?: {
        type: string;
        valueType: "boolean";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    } | undefined;
}>;
export type LightState = z.input<typeof lightStateZ>;
interface InternalState {
    source: telem.BooleanSource;
    addStatus: status.Aggregate;
    stopListening: Destructor;
}
export declare class Light extends aether.Leaf<typeof lightStateZ, InternalState> implements diagram.Element {
    static readonly TYPE = "Light";
    schema: z.ZodObject<{
        enabled: z.ZodBoolean;
        source: z.ZodDefault<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
            type: z.ZodString;
            variant: z.ZodEnum<["source", "sink", "source-transformer", "sink-transformer"]>;
            valueType: z.ZodString;
            props: z.ZodAny;
            transfer: z.ZodOptional<z.ZodArray<z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, "many">>;
        }, {
            variant: z.ZodLiteral<"source">;
        }>, {
            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;
    }, {
        enabled: boolean;
        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 {};
//# sourceMappingURL=light.d.ts.map