import { status } from '@synnaxlabs/client'; import { color, math, MultiSeries } from '@synnaxlabs/x'; import { z } from 'zod'; import { Factory } from './factory'; import { BooleanSink, BooleanSinkSpec, BooleanSource, BooleanSourceSpec, ColorSourceSpec, MultiSourceTransformer, NumberSourceSpec, SeriesSourceSpec, Spec, StringSourceSpec, Telem, UnarySinkTransformer, UnarySourceTransformer } from './telem'; export declare class TransformerFactory implements Factory { type: string; create(spec: Spec): Telem | null; } declare const setpointProps: z.ZodObject<{ truthy: z.ZodDefault; falsy: z.ZodDefault; }, z.core.$strip>; export type SetpointProps = z.infer; export declare const setpoint: (props: SetpointProps) => BooleanSinkSpec; export declare class SetPoint extends UnarySinkTransformer implements BooleanSink { static readonly TYPE = "boolean-numeric-converter-sink"; static readonly propsZ: z.ZodObject<{ truthy: z.ZodDefault; falsy: z.ZodDefault; }, z.core.$strip>; schema: z.ZodObject<{ truthy: z.ZodDefault; falsy: z.ZodDefault; }, z.core.$strip>; transform(...values: boolean[]): number[]; } export declare const withinBoundsProps: z.ZodObject<{ trueBound: z.ZodObject<{ lower: z.ZodNumber | z.ZodType>; upper: z.ZodNumber | z.ZodType>; }, z.core.$strip>; }, z.core.$strip>; export type WithinBoundsProps = z.infer; export declare const withinBounds: (props: WithinBoundsProps) => BooleanSourceSpec; export declare class WithinBounds extends UnarySourceTransformer implements BooleanSource { static readonly TYPE = "boolean-source"; static readonly propsZ: z.ZodObject<{ trueBound: z.ZodObject<{ lower: z.ZodNumber | z.ZodType>; upper: z.ZodNumber | z.ZodType>; }, z.core.$strip>; }, z.core.$strip>; schema: z.ZodObject<{ trueBound: z.ZodObject<{ lower: z.ZodNumber | z.ZodType>; upper: z.ZodNumber | z.ZodType>; }, z.core.$strip>; }, z.core.$strip>; protected transform(value: number): boolean; } declare const meanProps: z.ZodObject<{}, z.core.$strip>; export declare class Mean extends MultiSourceTransformer { static readonly TYPE = "mean"; static readonly propsZ: z.ZodObject<{}, z.core.$strip>; schema: z.ZodObject<{}, z.core.$strip>; protected transform(values: Record): number; } export declare const mean: (props: z.input) => BooleanSourceSpec; export declare const booleanStatusProps: z.ZodObject<{ trueVariant: z.ZodDefault>; }, z.core.$strip>; export declare class BooleanStatus extends UnarySourceTransformer { static readonly TYPE = "boolean-status"; static readonly propsZ: z.ZodObject<{ trueVariant: z.ZodDefault>; }, z.core.$strip>; schema: z.ZodObject<{ trueVariant: z.ZodDefault>; }, z.core.$strip>; protected transform(value: status.Status): boolean; } export declare const booleanStatus: (props: z.input) => BooleanSourceSpec; export declare const stringifyNumberProps: z.ZodObject<{ precision: z.ZodDefault; prefix: z.ZodDefault; suffix: z.ZodDefault; notation: z.ZodDefault>; }, z.core.$strip>; export declare class StringifyNumber extends UnarySourceTransformer { static readonly TYPE = "stringify-number"; static readonly propsZ: z.ZodObject<{ precision: z.ZodDefault; prefix: z.ZodDefault; suffix: z.ZodDefault; notation: z.ZodDefault>; }, z.core.$strip>; schema: z.ZodObject<{ precision: z.ZodDefault; prefix: z.ZodDefault; suffix: z.ZodDefault; notation: z.ZodDefault>; }, z.core.$strip>; protected transform(value: math.Numeric): string; } export declare const stringifyNumber: (props: z.input) => StringSourceSpec; export declare const rollingAverageProps: z.ZodObject<{ windowSize: z.ZodDefault; }, z.core.$strip>; export declare class RollingAverage extends UnarySourceTransformer { static readonly TYPE = "rolling-average"; static readonly propsZ: z.ZodObject<{ windowSize: z.ZodDefault; }, z.core.$strip>; schema: z.ZodObject<{ windowSize: z.ZodDefault; }, z.core.$strip>; private readonly window; protected transform(value: math.Numeric): number; protected shouldNotify(value: math.Numeric): boolean; } export declare const rollingAverage: (props: z.input) => NumberSourceSpec; export declare const colorGradientProps: z.ZodObject<{ gradient: z.ZodArray, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ r: z.ZodInt; g: z.ZodInt; b: z.ZodInt; a: z.ZodNumber; }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe>], null>, z.ZodObject<{ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe>], null>; }, z.core.$strip>, z.ZodObject<{ r: z.ZodInt; g: z.ZodInt; b: z.ZodInt; a: z.ZodPipe>; }, z.core.$strip>]>; position: z.ZodNumber; switched: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare class ColorGradient extends UnarySourceTransformer { static readonly TYPE = "color-gradient"; static readonly propsZ: z.ZodObject<{ gradient: z.ZodArray, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ r: z.ZodInt; g: z.ZodInt; b: z.ZodInt; a: z.ZodNumber; }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe>], null>, z.ZodObject<{ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe>], null>; }, z.core.$strip>, z.ZodObject<{ r: z.ZodInt; g: z.ZodInt; b: z.ZodInt; a: z.ZodPipe>; }, z.core.$strip>]>; position: z.ZodNumber; switched: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; schema: z.ZodObject<{ gradient: z.ZodArray, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ r: z.ZodInt; g: z.ZodInt; b: z.ZodInt; a: z.ZodNumber; }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe>], null>, z.ZodObject<{ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe>], null>; }, z.core.$strip>, z.ZodObject<{ r: z.ZodInt; g: z.ZodInt; b: z.ZodInt; a: z.ZodPipe>; }, z.core.$strip>]>; position: z.ZodNumber; switched: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; protected transform(value: number): color.Color; } export declare const colorGradient: (props: z.input) => ColorSourceSpec; export declare const scaleNumberProps: z.ZodObject<{ scale: z.ZodObject<{ offset: z.ZodNumber; scale: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export declare class ScaleNumber extends UnarySourceTransformer { static readonly TYPE = "scale-number"; static readonly propsZ: z.ZodObject<{ scale: z.ZodObject<{ offset: z.ZodNumber; scale: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; schema: z.ZodObject<{ scale: z.ZodObject<{ offset: z.ZodNumber; scale: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; protected transform(value: math.Numeric): number; } export declare const scaleNumber: (props: z.input) => NumberSourceSpec; export declare const downsampleModeZ: z.ZodEnum<{ average: "average"; decimate: "decimate"; }>; export type DownsampleMode = z.infer; export declare const downsampleModeProps: z.ZodObject<{ mode: z.ZodEnum<{ average: "average"; decimate: "decimate"; }>; windowSize: z.ZodDefault; }, z.core.$strip>; export type DownsampleModeProps = z.infer; export declare const downsampleMode: (props: DownsampleModeProps) => NumberSourceSpec; export declare class SeriesDownsampler { static readonly TYPE = "series-downsampler"; private _downsample; private readonly cache; readonly props: DownsampleModeProps; constructor(props: DownsampleModeProps); private downsample; transform(source: MultiSeries): MultiSeries; } export declare const seriesDownsampler: (props: z.input) => SeriesSourceSpec; export {}; //# sourceMappingURL=transformers.d.ts.map