import { z } from 'zod'; import { type ParseResult } from '../../lib/zod'; import { type CopyContext } from '../../context'; import { type IntrospectionTarget } from '../../introspection'; import { type ResourceResolver } from '../../resources/resolver'; import { type Typography as TypographyFragment } from '../../resources/types'; import { type DeserializedRecord } from '../../serialization'; import { type Stylesheet } from '../../stylesheet'; import { ControlDefinition, type Resolvable } from '../definition'; import { DefaultControlInstance, type ControlInstanceArgs } from '../instance'; import { ControlDefinitionVisitor } from '../visitor'; import * as Schema from './schema'; import { type ResolvedStyle } from './style'; type Schema = typeof Definition.schema; type DataType = z.infer; type ValueType = z.infer; type ResolvedValueType = z.infer; type InstanceType = DefaultControlInstance; declare class Definition extends ControlDefinition { static readonly type: "makeswift::controls::typography"; static get schema(): { type: z.ZodLiteral<"makeswift::controls::typography">; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::typography">; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::typography"; }, { type: "makeswift::controls::typography"; }>; data: z.ZodObject<{ id: z.ZodOptional; style: z.ZodArray>; lineHeight: z.ZodOptional>; letterSpacing: z.ZodOptional>; fontWeight: z.ZodOptional>; textAlign: z.ZodOptional>; uppercase: z.ZodOptional>; underline: z.ZodOptional>; strikethrough: z.ZodOptional>; italic: z.ZodOptional>; fontSize: z.ZodOptional; unit: z.ZodNullable; }, "strip", z.ZodTypeAny, { value: number | null; unit: string | null; }, { value: number | null; unit: string | null; }>>>; color: z.ZodOptional; alpha: z.ZodNullable; }, "strip", z.ZodTypeAny, { swatchId: string | null; alpha: number | null; }, { swatchId: string | null; alpha: number | null; }>>>; }, "strip", z.ZodTypeAny, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }>; }, "strip", z.ZodTypeAny, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }>, "many">; }, "strip", z.ZodTypeAny, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }>; value: z.ZodObject<{ id: z.ZodOptional; style: z.ZodArray>; lineHeight: z.ZodOptional>; letterSpacing: z.ZodOptional>; fontWeight: z.ZodOptional>; textAlign: z.ZodOptional>; uppercase: z.ZodOptional>; underline: z.ZodOptional>; strikethrough: z.ZodOptional>; italic: z.ZodOptional>; fontSize: z.ZodOptional; unit: z.ZodNullable; }, "strip", z.ZodTypeAny, { value: number | null; unit: string | null; }, { value: number | null; unit: string | null; }>>>; color: z.ZodOptional; alpha: z.ZodNullable; }, "strip", z.ZodTypeAny, { swatchId: string | null; alpha: number | null; }, { swatchId: string | null; alpha: number | null; }>>>; }, "strip", z.ZodTypeAny, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }>; }, "strip", z.ZodTypeAny, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }>, "many">; }, "strip", z.ZodTypeAny, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }>; resolvedValue: z.ZodString; }; static deserialize(data: DeserializedRecord): Definition; constructor(); get controlType(): "makeswift::controls::typography"; get schema(): { type: z.ZodLiteral<"makeswift::controls::typography">; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::typography">; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::typography"; }, { type: "makeswift::controls::typography"; }>; data: z.ZodObject<{ id: z.ZodOptional; style: z.ZodArray>; lineHeight: z.ZodOptional>; letterSpacing: z.ZodOptional>; fontWeight: z.ZodOptional>; textAlign: z.ZodOptional>; uppercase: z.ZodOptional>; underline: z.ZodOptional>; strikethrough: z.ZodOptional>; italic: z.ZodOptional>; fontSize: z.ZodOptional; unit: z.ZodNullable; }, "strip", z.ZodTypeAny, { value: number | null; unit: string | null; }, { value: number | null; unit: string | null; }>>>; color: z.ZodOptional; alpha: z.ZodNullable; }, "strip", z.ZodTypeAny, { swatchId: string | null; alpha: number | null; }, { swatchId: string | null; alpha: number | null; }>>>; }, "strip", z.ZodTypeAny, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }>; }, "strip", z.ZodTypeAny, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }>, "many">; }, "strip", z.ZodTypeAny, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }>; value: z.ZodObject<{ id: z.ZodOptional; style: z.ZodArray>; lineHeight: z.ZodOptional>; letterSpacing: z.ZodOptional>; fontWeight: z.ZodOptional>; textAlign: z.ZodOptional>; uppercase: z.ZodOptional>; underline: z.ZodOptional>; strikethrough: z.ZodOptional>; italic: z.ZodOptional>; fontSize: z.ZodOptional; unit: z.ZodNullable; }, "strip", z.ZodTypeAny, { value: number | null; unit: string | null; }, { value: number | null; unit: string | null; }>>>; color: z.ZodOptional; alpha: z.ZodNullable; }, "strip", z.ZodTypeAny, { swatchId: string | null; alpha: number | null; }, { swatchId: string | null; alpha: number | null; }>>>; }, "strip", z.ZodTypeAny, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }, { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }>; }, "strip", z.ZodTypeAny, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }, { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }>, "many">; }, "strip", z.ZodTypeAny, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }, { style: { value: { fontFamily?: string | null | undefined; lineHeight?: number | null | undefined; letterSpacing?: number | null | undefined; fontWeight?: number | null | undefined; textAlign?: string | null | undefined; uppercase?: boolean | null | undefined; underline?: boolean | null | undefined; strikethrough?: boolean | null | undefined; italic?: boolean | null | undefined; fontSize?: { value: number | null; unit: string | null; } | null | undefined; color?: { swatchId: string | null; alpha: number | null; } | null | undefined; }; deviceId: string; }[]; id?: string | undefined; }>; resolvedValue: z.ZodString; }; safeParse(data: unknown | undefined): ParseResult; fromData(data: DataType | undefined): ValueType | undefined; toData(value: ValueType): DataType; copyData(data: DataType | undefined, context: CopyContext): DataType | undefined; resolveValue(data: DataType | undefined, resolver: ResourceResolver, stylesheet: Stylesheet, _control?: InstanceType): Resolvable; createInstance(args: ControlInstanceArgs): DefaultControlInstance; accept(visitor: ControlDefinitionVisitor, ...args: unknown[]): R; introspect(data: DataType | undefined, target: IntrospectionTarget): R[]; fragmentToData(fragment: TypographyFragment | null): DataType | undefined; } export type { ResolvedStyle as ResolvedTypographyStyle }; export declare class unstable_TypographyDefinition extends Definition { } export declare function unstable_Typography(): unstable_TypographyDefinition; //# sourceMappingURL=typography.d.ts.map