import { z } from 'zod';
import { aether } from '../../../aether/aether';
import { telem } from '../../../telem/aether';
export declare const MODES: readonly ["fire", "momentary", "pulse"];
export declare const modeZ: z.ZodEnum<{
    fire: "fire";
    momentary: "momentary";
    pulse: "pulse";
}>;
export type Mode = z.infer<typeof modeZ>;
export declare const buttonStateZ: z.ZodObject<{
    trigger: z.ZodNumber;
    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>>>;
    mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
        fire: "fire";
        momentary: "momentary";
        pulse: "pulse";
    }>>>;
}, z.core.$strip>;
interface InternalState {
    sink: telem.BooleanSink;
    prevTrigger: number;
}
export declare const MOUSE_DOWN_INCREMENT = 2;
export declare const MOUSE_UP_INCREMENT = 1;
export declare class Button extends aether.Leaf<typeof buttonStateZ, InternalState> {
    static readonly TYPE = "Button";
    schema: z.ZodObject<{
        trigger: z.ZodNumber;
        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>>>;
        mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
            fire: "fire";
            momentary: "momentary";
            pulse: "pulse";
        }>>>;
    }, z.core.$strip>;
    afterUpdate(ctx: aether.Context): void;
    afterDelete(): void;
}
export declare const REGISTRY: aether.ComponentRegistry;
export {};
//# sourceMappingURL=button.d.ts.map