import { type Destructor } from "@synnaxlabs/x";
import { z } from "zod";
import { aether } from '../../../aether/aether';
import { telem } from '../../aether';
export declare const chipStateZ: z.ZodObject<{
    triggered: z.ZodBoolean;
    status: z.ZodObject<{
        key: z.ZodString;
        variant: z.ZodEnum<["success", "error", "warning", "info", "loading", "disabled"]>;
        message: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        time: z.ZodUnion<[z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import("@synnaxlabs/client").TimeStamp, Number>, z.ZodEffects<z.ZodNumber, import("@synnaxlabs/client").TimeStamp, number>, z.ZodType<import("@synnaxlabs/client").TimeStamp, z.ZodTypeDef, import("@synnaxlabs/client").TimeStamp>]>;
        data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        message: string;
        key: string;
        time: import("@synnaxlabs/client").TimeStamp;
        variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
        description?: string | undefined;
        data?: Record<string, unknown> | undefined;
    }, {
        message: string;
        key: string;
        time: (number | Number | import("@synnaxlabs/client").TimeStamp) & (number | Number | import("@synnaxlabs/client").TimeStamp | undefined);
        variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
        description?: string | undefined;
        data?: Record<string, unknown> | undefined;
    }>;
    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<"status">;
    }, "strip", z.ZodTypeAny, {
        type: string;
        valueType: "status";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    }, {
        type: string;
        valueType: "status";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    }>>>;
}, "strip", z.ZodTypeAny, {
    status: {
        message: string;
        key: string;
        time: import("@synnaxlabs/client").TimeStamp;
        variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
        description?: string | undefined;
        data?: Record<string, unknown> | undefined;
    };
    source: {
        type: string;
        valueType: "status";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    };
    sink: {
        type: string;
        valueType: "boolean";
        variant: "sink";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    };
    triggered: boolean;
}, {
    status: {
        message: string;
        key: string;
        time: (number | Number | import("@synnaxlabs/client").TimeStamp) & (number | Number | import("@synnaxlabs/client").TimeStamp | undefined);
        variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
        description?: string | undefined;
        data?: Record<string, unknown> | undefined;
    };
    triggered: boolean;
    sink?: {
        type: string;
        valueType: "boolean";
        variant: "sink";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    } | undefined;
    source?: {
        type: string;
        valueType: "status";
        variant: "source";
        props?: any;
        transfer?: ArrayBuffer[] | undefined;
    } | undefined;
}>;
interface InternalState {
    source: telem.StatusSource;
    sink: telem.BooleanSink;
    stopListening: Destructor;
}
export declare class Chip extends aether.Leaf<typeof chipStateZ, InternalState> {
    static readonly TYPE = "Chip";
    schema: z.ZodObject<{
        triggered: z.ZodBoolean;
        status: z.ZodObject<{
            key: z.ZodString;
            variant: z.ZodEnum<["success", "error", "warning", "info", "loading", "disabled"]>;
            message: z.ZodString;
            description: z.ZodOptional<z.ZodString>;
            time: z.ZodUnion<[z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import("@synnaxlabs/client").TimeStamp, Number>, z.ZodEffects<z.ZodNumber, import("@synnaxlabs/client").TimeStamp, number>, z.ZodType<import("@synnaxlabs/client").TimeStamp, z.ZodTypeDef, import("@synnaxlabs/client").TimeStamp>]>;
            data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            message: string;
            key: string;
            time: import("@synnaxlabs/client").TimeStamp;
            variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
            description?: string | undefined;
            data?: Record<string, unknown> | undefined;
        }, {
            message: string;
            key: string;
            time: (number | Number | import("@synnaxlabs/client").TimeStamp) & (number | Number | import("@synnaxlabs/client").TimeStamp | undefined);
            variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
            description?: string | undefined;
            data?: Record<string, unknown> | undefined;
        }>;
        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<"status">;
        }, "strip", z.ZodTypeAny, {
            type: string;
            valueType: "status";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        }, {
            type: string;
            valueType: "status";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        }>>>;
    }, "strip", z.ZodTypeAny, {
        status: {
            message: string;
            key: string;
            time: import("@synnaxlabs/client").TimeStamp;
            variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
            description?: string | undefined;
            data?: Record<string, unknown> | undefined;
        };
        source: {
            type: string;
            valueType: "status";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        };
        sink: {
            type: string;
            valueType: "boolean";
            variant: "sink";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        };
        triggered: boolean;
    }, {
        status: {
            message: string;
            key: string;
            time: (number | Number | import("@synnaxlabs/client").TimeStamp) & (number | Number | import("@synnaxlabs/client").TimeStamp | undefined);
            variant: "disabled" | "loading" | "error" | "success" | "warning" | "info";
            description?: string | undefined;
            data?: Record<string, unknown> | undefined;
        };
        triggered: boolean;
        sink?: {
            type: string;
            valueType: "boolean";
            variant: "sink";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        } | undefined;
        source?: {
            type: string;
            valueType: "status";
            variant: "source";
            props?: any;
            transfer?: ArrayBuffer[] | undefined;
        } | undefined;
    }>;
    afterUpdate(): Promise<void>;
    private updateEnabledState;
    afterDelete(): Promise<void>;
    private asyncAfterDelete;
    render(): void;
}
export {};
