import { z } from 'zod'; import { type ParseResult } from '../../lib/zod'; import { type DeserializedRecord } from '../../serialization'; import { ControlDefinition, type Resolvable, type SchemaType } from '../definition'; import { DefaultControlInstance, type ControlInstanceArgs } from '../instance'; import { ControlDefinitionVisitor } from '../visitor'; type Config = z.infer; type SchemaByVariantAndDefaultValue = V extends false ? undefined extends D ? typeof Definition.schema.withoutVariants.relaxed : typeof Definition.schema.withoutVariants.strict : undefined extends D ? typeof Definition.schema.withVariants.relaxed : typeof Definition.schema.withVariants.strict; type Schema = SchemaByVariantAndDefaultValue; type DataType = z.infer['data']>; type ValueType = z.infer['value']>; type ResolvedValueType = z.infer['resolvedValue']>; type DefinitionType = z.infer['definition']>; type TypeType = z.infer['type']>; type ReturnedSchemaType = { definition: SchemaType>; type: SchemaType>; data: SchemaType>; value: SchemaType>; resolvedValue: SchemaType>; }; declare class Definition extends ControlDefinition, ValueType, ResolvedValueType> { readonly version: z.infer; private static readonly v1DataType; private static readonly dataSignature; static readonly type: "makeswift::controls::font"; static get schema(): { version: z.ZodLiteral<1>; withoutVariants: { relaxed: { type: z.ZodLiteral<"makeswift::controls::font">; value: SchemaType<{ fontFamily: string; } | undefined>; resolvedValue: SchemaType<{ fontFamily: string; } | undefined>; data: SchemaType<{ value: { fontFamily: string; }; "@@makeswift/type": "font::v1"; } | undefined>; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }>; version: z.ZodLiteral<1>; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::font">; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }>; version: z.ZodLiteral<1>; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::font"; config: { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }; version: 1; }, { type: "makeswift::controls::font"; config: { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }; version: 1; }>; }; strict: { type: z.ZodLiteral<"makeswift::controls::font">; value: SchemaType<{ fontFamily: string; }>; resolvedValue: SchemaType<{ fontFamily: string; }>; data: SchemaType<{ value: { fontFamily: string; }; "@@makeswift/type": "font::v1"; }>; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; }>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { defaultValue: { fontFamily: string; }; variant: false; label?: string | undefined; description?: string | undefined; }, { defaultValue: { fontFamily: string; }; variant: false; label?: string | undefined; description?: string | undefined; }>; version: z.ZodLiteral<1>; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::font">; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; }>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { defaultValue: { fontFamily: string; }; variant: false; label?: string | undefined; description?: string | undefined; }, { defaultValue: { fontFamily: string; }; variant: false; label?: string | undefined; description?: string | undefined; }>; version: z.ZodLiteral<1>; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::font"; config: { defaultValue: { fontFamily: string; }; variant: false; label?: string | undefined; description?: string | undefined; }; version: 1; }, { type: "makeswift::controls::font"; config: { defaultValue: { fontFamily: string; }; variant: false; label?: string | undefined; description?: string | undefined; }; version: 1; }>; }; }; withVariants: { relaxed: { type: z.ZodLiteral<"makeswift::controls::font">; value: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; resolvedValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; data: SchemaType<{ value: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; "@@makeswift/type": "font::v1"; } | undefined>; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }>; version: z.ZodLiteral<1>; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::font">; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }>; version: z.ZodLiteral<1>; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::font"; config: { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }; version: 1; }, { type: "makeswift::controls::font"; config: { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }; version: 1; }>; }; strict: { type: z.ZodLiteral<"makeswift::controls::font">; value: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }>; resolvedValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }>; data: SchemaType<{ value: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; "@@makeswift/type": "font::v1"; }>; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { defaultValue: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; variant: true; label?: string | undefined; description?: string | undefined; }, { defaultValue: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; variant: true; label?: string | undefined; description?: string | undefined; }>; version: z.ZodLiteral<1>; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::font">; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { defaultValue: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; variant: true; label?: string | undefined; description?: string | undefined; }, { defaultValue: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; variant: true; label?: string | undefined; description?: string | undefined; }>; version: z.ZodLiteral<1>; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::font"; config: { defaultValue: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; variant: true; label?: string | undefined; description?: string | undefined; }; version: 1; }, { type: "makeswift::controls::font"; config: { defaultValue: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; variant: true; label?: string | undefined; description?: string | undefined; }; version: 1; }>; }; }; }; static deserialize(data: DeserializedRecord): FontDefinition; constructor(config: C, version: z.infer); get controlType(): "makeswift::controls::font"; get schema(): ReturnedSchemaType; get refinedSchema(): { type: z.ZodLiteral<"makeswift::controls::font">; value: SchemaType<{ fontFamily: string; } | undefined>; resolvedValue: SchemaType<{ fontFamily: string; } | undefined>; data: SchemaType<{ value: { fontFamily: string; }; "@@makeswift/type": "font::v1"; } | undefined>; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }>; version: z.ZodLiteral<1>; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::font">; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }, { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }>; version: z.ZodLiteral<1>; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::font"; config: { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }; version: 1; }, { type: "makeswift::controls::font"; config: { variant: false; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; } | undefined; }; version: 1; }>; } | { type: z.ZodLiteral<"makeswift::controls::font">; value: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; resolvedValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; data: SchemaType<{ value: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; }; "@@makeswift/type": "font::v1"; } | undefined>; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }>; version: z.ZodLiteral<1>; definition: z.ZodObject<{ type: z.ZodLiteral<"makeswift::controls::font">; config: z.ZodObject<{ label: z.ZodOptional; description: z.ZodOptional; defaultValue: SchemaType<{ fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined>; variant: z.ZodLiteral; }, "strip", z.ZodTypeAny, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }, { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }>; version: z.ZodLiteral<1>; }, "strip", z.ZodTypeAny, { type: "makeswift::controls::font"; config: { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }; version: 1; }, { type: "makeswift::controls::font"; config: { variant: true; label?: string | undefined; description?: string | undefined; defaultValue?: { fontFamily: string; fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; fontStyle: "italic" | "normal"; } | undefined; }; version: 1; }>; }; get dataSchema(): Schema['data']; safeParse(data: unknown | undefined): ParseResult | undefined>; fromData(data: DataType | undefined): ValueType | undefined; toData(value: ValueType): DataType; copyData(data: DataType | undefined): DataType | undefined; resolveValue(data: DataType | undefined): Resolvable | undefined>; createInstance(args: ControlInstanceArgs): DefaultControlInstance; accept(visitor: ControlDefinitionVisitor, ...args: unknown[]): R; } export declare class FontDefinition extends Definition { } type DefaultValueByVariant = z.infer['defaultValue']; type UserConfigRequiredDefault = { label?: string; description?: string; variant?: V; defaultValue: DefaultValueByVariant; }; type UserConfigOptionalDefault = { label?: string; description?: string; variant?: V; defaultValue?: DefaultValueByVariant | undefined; }; type NormedConfig = z.infer['config']>; export declare function Font(config: UserConfigRequiredDefault): FontDefinition>>; export declare function Font(config?: UserConfigOptionalDefault): FontDefinition | undefined>>; export {}; //# sourceMappingURL=font.d.ts.map