logsdx
Version:
<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>
693 lines (692 loc) • 36.9 kB
TypeScript
import { z } from "zod";
export declare const styleOptionsSchema: z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>;
export declare const tokenMetadataSchema: z.ZodOptional<z.ZodObject<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, "strip", z.ZodUnknown, z.objectOutputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip">, z.objectInputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip">>>;
export declare const patternMatchSchema: z.ZodObject<{
name: z.ZodString;
pattern: z.ZodString;
options: z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>;
}, "strip", z.ZodTypeAny, {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}, {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}>;
export declare const schemaConfigSchema: z.ZodObject<{
defaultStyle: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
matchWords: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchStartsWith: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchEndsWith: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchContains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
pattern: z.ZodString;
options: z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>;
}, "strip", z.ZodTypeAny, {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}, {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}>, "many">>;
whiteSpace: z.ZodDefault<z.ZodOptional<z.ZodEnum<["preserve", "trim"]>>>;
newLine: z.ZodDefault<z.ZodOptional<z.ZodEnum<["preserve", "trim"]>>>;
}, "strip", z.ZodTypeAny, {
whiteSpace: "preserve" | "trim";
newLine: "preserve" | "trim";
defaultStyle?: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
} | undefined;
matchWords?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchStartsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchEndsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchContains?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchPatterns?: {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}[] | undefined;
}, {
defaultStyle?: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
} | undefined;
matchWords?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchStartsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchEndsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchContains?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchPatterns?: {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}[] | undefined;
whiteSpace?: "preserve" | "trim" | undefined;
newLine?: "preserve" | "trim" | undefined;
}>;
export declare const themePresetSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
mode: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
schema: z.ZodObject<{
defaultStyle: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
matchWords: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchStartsWith: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchEndsWith: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchContains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>>;
matchPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
pattern: z.ZodString;
options: z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>;
}, "strip", z.ZodTypeAny, {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}, {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}>, "many">>;
whiteSpace: z.ZodDefault<z.ZodOptional<z.ZodEnum<["preserve", "trim"]>>>;
newLine: z.ZodDefault<z.ZodOptional<z.ZodEnum<["preserve", "trim"]>>>;
}, "strip", z.ZodTypeAny, {
whiteSpace: "preserve" | "trim";
newLine: "preserve" | "trim";
defaultStyle?: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
} | undefined;
matchWords?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchStartsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchEndsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchContains?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchPatterns?: {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}[] | undefined;
}, {
defaultStyle?: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
} | undefined;
matchWords?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchStartsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchEndsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchContains?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchPatterns?: {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}[] | undefined;
whiteSpace?: "preserve" | "trim" | undefined;
newLine?: "preserve" | "trim" | undefined;
}>;
}, "strip", z.ZodTypeAny, {
name: string;
schema: {
whiteSpace: "preserve" | "trim";
newLine: "preserve" | "trim";
defaultStyle?: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
} | undefined;
matchWords?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchStartsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchEndsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchContains?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchPatterns?: {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}[] | undefined;
};
description?: string | undefined;
mode?: "light" | "dark" | "auto" | undefined;
}, {
name: string;
schema: {
defaultStyle?: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
} | undefined;
matchWords?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchStartsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchEndsWith?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchContains?: Record<string, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}> | undefined;
matchPatterns?: {
options: {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
};
name: string;
pattern: string;
}[] | undefined;
whiteSpace?: "preserve" | "trim" | undefined;
newLine?: "preserve" | "trim" | undefined;
};
description?: string | undefined;
mode?: "light" | "dark" | "auto" | undefined;
}>;
export declare const tokenSchema: z.ZodObject<{
content: z.ZodString;
metadata: z.ZodOptional<z.ZodObject<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, "strip", z.ZodUnknown, z.objectOutputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip">, z.objectInputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip">>>;
}, "strip", z.ZodTypeAny, {
content: string;
metadata?: z.objectOutputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip"> | undefined;
}, {
content: string;
metadata?: z.objectInputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip"> | undefined;
}>;
export declare const tokenListSchema: z.ZodArray<z.ZodObject<{
content: z.ZodString;
metadata: z.ZodOptional<z.ZodObject<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, "strip", z.ZodUnknown, z.objectOutputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip">, z.objectInputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip">>>;
}, "strip", z.ZodTypeAny, {
content: string;
metadata?: z.objectOutputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip"> | undefined;
}, {
content: string;
metadata?: z.objectInputType<{
style: z.ZodOptional<z.ZodObject<{
color: z.ZodEffects<z.ZodString, string, string>;
styleCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<["bold", "italic", "underline", "dim", "blink", "reverse", "strikethrough"]>, "many">>;
htmlStyleFormat: z.ZodOptional<z.ZodEnum<["css", "className"]>>;
}, "strip", z.ZodTypeAny, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}, {
color: string;
styleCodes?: ("bold" | "italic" | "underline" | "dim" | "blink" | "reverse" | "strikethrough")[] | undefined;
htmlStyleFormat?: "css" | "className" | undefined;
}>>;
}, z.ZodUnknown, "strip"> | undefined;
}>, "many">;
export * from "./validator";