import { box, color, scale } from '@synnaxlabs/x'; import { z } from 'zod'; import { aether } from '../../../aether/aether'; import { telem } from '../../../telem/aether'; import { theming } from '../../../theming/aether'; import { Element } from '../../diagram/aether/Diagram'; import { render } from '../../render'; import { staleness } from '../../staleness/aether'; declare const valueState: z.ZodObject<{ stalenessTimeout: z.ZodDefault; box: z.ZodObject<{ one: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; two: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; root: z.ZodObject<{ x: z.ZodEnum<{ left: "left"; right: "right"; }>; y: z.ZodEnum<{ top: "top"; bottom: "bottom"; }>; }, z.core.$strip>; }, z.core.$strip>; telem: z.ZodDefault>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"string">; }, z.core.$strip>>; backgroundTelem: z.ZodDefault>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"color">; }, z.core.$strip>>; level: z.ZodDefault>; color: z.ZodDefault, 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>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number, number] | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; } | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; }>>>; precision: z.ZodDefault; stalenessColor: z.ZodDefault, 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>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number, number] | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; } | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; }>>>; minWidth: z.ZodDefault; width: z.ZodOptional; notation: z.ZodDefault>; location: z.ZodDefault, z.ZodEnum<{ center: "center"; }>]>; y: z.ZodUnion<[z.ZodEnum<{ top: "top"; bottom: "bottom"; }>, z.ZodEnum<{ center: "center"; }>]>; }, z.core.$strip>>; useWidthForBackground: z.ZodDefault; valueBackgroundShift: z.ZodDefault>; valueBackgroundOverScan: z.ZodDefault>; clip: z.ZodDefault; borderRadius: z.ZodOptional, z.ZodObject<{ topLeft: z.ZodNumber; topRight: z.ZodNumber; bottomLeft: z.ZodNumber; bottomRight: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ topLeft: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; topRight: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; bottomLeft: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; bottomRight: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>>; }, z.core.$strip>; export interface ValueProps { scale?: scale.XY; } interface InternalState { theme: theming.Theme; renderCtx: render.Context; telem: telem.StringSource; stopListening?: () => void; backgroundTelem: telem.ColorSource; stopListeningBackground?: () => void; requestRender: render.Requestor | null; textColor: color.Color; fontString: string; staleness: staleness.Registration; stale: boolean; } export declare class Value extends aether.Leaf implements Element { static readonly TYPE = "value"; static readonly z: z.ZodObject<{ stalenessTimeout: z.ZodDefault; box: z.ZodObject<{ one: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; two: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; root: z.ZodObject<{ x: z.ZodEnum<{ left: "left"; right: "right"; }>; y: z.ZodEnum<{ top: "top"; bottom: "bottom"; }>; }, z.core.$strip>; }, z.core.$strip>; telem: z.ZodDefault>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"string">; }, z.core.$strip>>; backgroundTelem: z.ZodDefault>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"color">; }, z.core.$strip>>; level: z.ZodDefault>; color: z.ZodDefault, 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>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number, number] | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; } | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; }>>>; precision: z.ZodDefault; stalenessColor: z.ZodDefault, 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>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number, number] | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; } | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; }>>>; minWidth: z.ZodDefault; width: z.ZodOptional; notation: z.ZodDefault>; location: z.ZodDefault, z.ZodEnum<{ center: "center"; }>]>; y: z.ZodUnion<[z.ZodEnum<{ top: "top"; bottom: "bottom"; }>, z.ZodEnum<{ center: "center"; }>]>; }, z.core.$strip>>; useWidthForBackground: z.ZodDefault; valueBackgroundShift: z.ZodDefault>; valueBackgroundOverScan: z.ZodDefault>; clip: z.ZodDefault; borderRadius: z.ZodOptional, z.ZodObject<{ topLeft: z.ZodNumber; topRight: z.ZodNumber; bottomLeft: z.ZodNumber; bottomRight: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ topLeft: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; topRight: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; bottomLeft: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; bottomRight: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>>; }, z.core.$strip>; schema: z.ZodObject<{ stalenessTimeout: z.ZodDefault; box: z.ZodObject<{ one: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; two: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; root: z.ZodObject<{ x: z.ZodEnum<{ left: "left"; right: "right"; }>; y: z.ZodEnum<{ top: "top"; bottom: "bottom"; }>; }, z.core.$strip>; }, z.core.$strip>; telem: z.ZodDefault>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"string">; }, z.core.$strip>>; backgroundTelem: z.ZodDefault>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"color">; }, z.core.$strip>>; level: z.ZodDefault>; color: z.ZodDefault, 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>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number, number] | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; } | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; }>>>; precision: z.ZodDefault; stalenessColor: z.ZodDefault, 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>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number, number] | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; } | { rgba255: [number, number, number, number]; } | { r: number; g: number; b: number; a: number; }>>>; minWidth: z.ZodDefault; width: z.ZodOptional; notation: z.ZodDefault>; location: z.ZodDefault, z.ZodEnum<{ center: "center"; }>]>; y: z.ZodUnion<[z.ZodEnum<{ top: "top"; bottom: "bottom"; }>, z.ZodEnum<{ center: "center"; }>]>; }, z.core.$strip>>; useWidthForBackground: z.ZodDefault; valueBackgroundShift: z.ZodDefault>; valueBackgroundOverScan: z.ZodDefault>; clip: z.ZodDefault; borderRadius: z.ZodOptional, z.ZodObject<{ topLeft: z.ZodNumber; topRight: z.ZodNumber; bottomLeft: z.ZodNumber; bottomRight: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ topLeft: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; topRight: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; bottomLeft: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; bottomRight: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>>; }, z.core.$strip>; afterUpdate(ctx: aether.Context): void; afterDelete(): void; private requestRender; get box(): box.Box; private get fontHeight(); private maybeUpdateWidth; private getTextColor; render({ viewportScale }: { viewportScale?: scale.XY | undefined; }): void; } export declare const REGISTRY: aether.ComponentRegistry; export {}; //# sourceMappingURL=value.d.ts.map