import { FilledLinkContentValue } from "../link.js"; import { FilledLinkLegacyValue } from "./link.js"; import { z } from "zod/mini"; //#region src/content/legacy/richText.d.ts declare const RichTextNodeType: { readonly heading1: "heading1"; readonly heading2: "heading2"; readonly heading3: "heading3"; readonly heading4: "heading4"; readonly heading5: "heading5"; readonly heading6: "heading6"; readonly paragraph: "paragraph"; readonly preformatted: "preformatted"; readonly oListItem: "o-list-item"; readonly listItem: "list-item"; readonly image: "image"; readonly embed: "embed"; readonly hyperlink: "hyperlink"; readonly strong: "strong"; readonly em: "em"; }; type RichTextNodeTypes = (typeof RichTextNodeType)[keyof typeof RichTextNodeType]; type HyperlinkSpan = { type: typeof RichTextNodeType.hyperlink; start: number; end: number; data: TData; }; declare const LabelSpanSchema: z.ZodMiniObject<{ type: z.ZodMiniLiteral<"label">; start: z.ZodMiniNumber; end: z.ZodMiniNumber; data: z.ZodMiniPipe>; }, z.core.$strip>; type LabelSpan = z.infer; declare const BasicSpanSchema: z.ZodMiniObject<{ type: z.ZodMiniUnion, z.ZodMiniLiteral<"em">, z.ZodMiniLiteral<"list-item">]>; start: z.ZodMiniNumber; end: z.ZodMiniNumber; }, z.core.$strip>; type BasicSpan = z.infer; type Span = HyperlinkSpan | LabelSpan | BasicSpan; declare const TextBlockLegacySchema: z.ZodMiniObject<{ type: z.ZodMiniUnion, z.ZodMiniLiteral<"heading1">, z.ZodMiniLiteral<"heading2">, z.ZodMiniLiteral<"heading3">, z.ZodMiniLiteral<"heading4">, z.ZodMiniLiteral<"heading5">, z.ZodMiniLiteral<"heading6">, z.ZodMiniLiteral<"preformatted">, z.ZodMiniLiteral<"o-list-item">, z.ZodMiniLiteral<"list-item">]>; content: z.ZodMiniObject<{ text: z.ZodMiniString; spans: z.ZodMiniOptional, z.ZodMiniTransform<({ type: "label"; start: number; end: number; data: string; } | { type: "list-item" | "strong" | "em"; start: number; end: number; } | { type: "hyperlink"; start: number; end: number; data: FilledLinkLegacyValue; })[], unknown[]>>>; }, z.core.$strip>; label: z.ZodMiniOptional>; direction: z.ZodMiniOptional>; }, z.core.$strip>; type TextBlockLegacy = z.infer; declare const ImageBlockLegacySchema: z.ZodMiniObject<{ type: z.ZodMiniLiteral<"image">; data: z.ZodMiniObject<{ origin: z.ZodMiniObject<{ id: z.ZodMiniString; url: z.ZodMiniString; width: z.ZodMiniNumber; height: z.ZodMiniNumber; }, z.core.$strip>; width: z.ZodMiniNumber; height: z.ZodMiniNumber; edit: z.ZodMiniObject<{ zoom: z.ZodMiniNumber; crop: z.ZodMiniObject<{ x: z.ZodMiniNumber; y: z.ZodMiniNumber; }, z.core.$strip>; background: z.ZodMiniString; }, z.core.$strip>; url: z.ZodMiniOptional>; credits: z.ZodMiniOptional>>, z.ZodMiniTransform>>; alt: z.ZodMiniOptional>>, z.ZodMiniTransform>>; provider: z.ZodMiniOptional>>; linkTo: z.ZodMiniOptional>>>; }, z.core.$strip>; label: z.ZodMiniOptional>>; direction: z.ZodMiniOptional>>; }, z.core.$strip>; type ImageBlockLegacy = z.infer; declare const EmbedBlockLegacySchema: z.ZodMiniObject<{ type: z.ZodMiniLiteral<"embed">; data: z.ZodMiniObject<{ embed_url: z.ZodMiniString; type: z.ZodMiniString; version: z.ZodMiniOptional, z.ZodMiniNumber]>>>; title: z.ZodMiniOptional>>; author_name: z.ZodMiniOptional>>; author_url: z.ZodMiniOptional>>; provider_name: z.ZodMiniOptional>>; provider_url: z.ZodMiniOptional>>; cache_age: z.ZodMiniOptional, z.ZodMiniNumber]>>>; thumbnail_url: z.ZodMiniOptional>>; thumbnail_width: z.ZodMiniOptional>>; thumbnail_height: z.ZodMiniOptional>>; html: z.ZodMiniOptional>>; }, z.core.$loose>; label: z.ZodMiniOptional>>; direction: z.ZodMiniOptional>>; }, z.core.$strip>; type EmbedBlockLegacy = z.infer; type RichTextLegacyBlock = TextBlockLegacy | ImageBlockLegacy | EmbedBlockLegacy; //#endregion export { RichTextLegacyBlock, RichTextNodeType, RichTextNodeTypes, Span }; //# sourceMappingURL=richText.d.ts.map