import { border, box, record } from '@synnaxlabs/x'; import { ReactElement } from 'react'; import { z } from 'zod'; export declare const TEXT_TYPE = "text"; export type TextType = typeof TEXT_TYPE; export declare const textPropsZ: z.ZodObject<{ value: z.ZodString; level: z.ZodEnum<{ small: "small"; h1: "h1"; h2: "h2"; h3: "h3"; h4: "h4"; h5: "h5"; p: "p"; }>; weight: z.ZodUnion]>; align: z.ZodUnion<[z.ZodEnum<{ left: "left"; right: "right"; }>, z.ZodEnum<{ center: "center"; }>]>; backgroundColor: z.ZodUnion, 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.core.$strip>; export type TextProps = z.infer; export type CellProps

= P & { cellKey: string; box: box.Box; /** * Rounding of the cell's corners in px. Only cells at the table's outer corners * round. */ borderRadius?: border.CrudeRadius; selected: boolean; editable: boolean; onSelect: (key: string, ev: React.MouseEvent) => void; onChange: (props: P) => void; }; export declare const Text: ({ cellKey, onChange, value, selected, editable, onSelect, box: b, align, level, weight, backgroundColor, }: CellProps) => ReactElement; export declare const VALUE_TYPE = "value"; export type ValueType = typeof VALUE_TYPE; export declare const valuePropsZ: z.ZodObject<{ telem: z.ZodObject<{ type: z.ZodString; props: z.ZodAny; transfer: z.ZodOptional>>; variant: z.ZodLiteral<"source">; valueType: z.ZodLiteral<"string">; }, z.core.$strip>; redline: z.ZodObject<{ bounds: z.ZodObject<{ lower: z.ZodNumber | z.ZodType>; upper: z.ZodNumber | z.ZodType>; }, z.core.$strip>; 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>; level: z.ZodEnum<{ small: "small"; h1: "h1"; h2: "h2"; h3: "h3"; h4: "h4"; h5: "h5"; p: "p"; }>; color: z.ZodString; units: z.ZodString; stalenessTimeout: 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; }>>>; }, z.core.$strip>; export type ValueProps = z.infer; export declare const Value: ({ cellKey, borderRadius, telem: t, level, color, redline: { gradient, bounds }, selected, box: b, onSelect, stalenessTimeout, stalenessColor, }: CellProps) => import("react").JSX.Element; //# sourceMappingURL=Cells.d.ts.map