import { z } from "zod"; import { Merge } from "type-fest"; /** * Converts a potentially encoded Global ID (GID) to its decoded form if it is a valid GID, otherwise returns undefined. * * @function toGID * @param {string} value - The GID to decode. * @returns {string | undefined} The decoded GID if valid, otherwise undefined. */ declare const toGID: (value: string) => string | undefined; /** * Checks if the provided string is an encoded GID. * * @function isEncodedGID * @param {string} value - The string to check. * @returns {boolean} True if the string is an encoded GID, false otherwise. */ declare const isEncodedGID: (value: Type) => value is Type; /** * Determines if the provided string is a valid GID. * * @function isGID * @param {string} value - The string to validate. * @returns {boolean} True if the string is a valid GID, false otherwise. */ declare const isGID: (value: Type) => value is Type; /** * Checks if the provided value can be parsed into a Shopify ID (SID) with a minimum number of digits. * * @function isParsableToSID * @param {string | number} value - The value to check. * @param {number} [min_digits] - The minimum number of digits required for the SID. Default is `9` * @returns {boolean} True if the value can be parsed into a SID, false otherwise. */ declare const isParsableToSID: (value: Type, min_digits?: number) => value is Type; /** * Converts a GID to a Shopify ID (SID) if possible, considering a minimum number of digits. * * @function toSID * @param {string} value - The GID to convert. * @param {number} [min_digits] - The minimum number of digits required for the SID. Default is `9` * @returns {number | undefined} The SID if conversion is possible, otherwise undefined. */ declare const toSID: (value: Type, min_digits?: number) => number | undefined; /** * Determines if the provided value is a valid Shopify ID (SID), considering a minimum number of digits. * * @function isSID * @param {number | string} value - The value to validate. * @param {number} [min_digits] - The minimum number of digits required for the SID. Default is `9` * @returns {boolean} True if the value is a valid SID, false otherwise. */ declare const isSID: (value: Type, min_digits?: number) => value is Type; /** * Generates a Shopify media URL with optional parameters for resizing and cropping. * * @function shopifyMediaURL * @param {string} [src] - The source URL of the media. Default is `undefined` * @param {number | string} [width] - The desired width of the media. Default is `undefined` * @param {number | string} [height] - The desired height of the media. Default is `undefined` * @param {'top' | 'center' | 'bottom' | 'left' | 'right'} [crop] - The crop position. Default is `undefined` * @param {boolean} [scale] - Whether to scale the image. Default is `false` * @returns {string | undefined} The modified media URL or undefined if the source URL is invalid. */ declare const shopifyMediaURL: (src?: string | undefined, width?: number | string | undefined, height?: number | string | undefined, crop?: "top" | "center" | "bottom" | "left" | "right" | undefined, scale?: boolean) => string | undefined; declare const elementTags: z.ZodEnum<[ "div", "article", "aside", "footer", "header", "section" ]>; type ElementTags = z.infer; declare const pageTypes: z.ZodEnum<[ "404", "article", "blog", "cart", "collection", "list-collections", "customers/account", "customers/activate_account", "customers/addresses", "customers/login", "customers/order", "customers/register", "customers/reset_password", "gift_card", "index", "page", "password", "policy", "product", "search" ]>; type PageTypes = z.infer; declare const block_schema: z.ZodObject<{ limit: z.ZodOptional; name: z.ZodOptional; settings: z.ZodArray; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>, "many">; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }, { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ type: "checkbox"; default?: boolean | undefined; } | { type: "number"; default?: number | undefined; placeholder?: string | undefined; } | { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; } | { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; } | { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }>; type BlockSchema = z.infer; declare const section_schema: z.ZodObject<{ blocks: z.ZodOptional; name: z.ZodOptional; settings: z.ZodArray; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>, "many">; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }, { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ type: "checkbox"; default?: boolean | undefined; } | { type: "number"; default?: number | undefined; placeholder?: string | undefined; } | { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; } | { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; } | { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }>, "many">>; class: z.ZodOptional; limit: z.ZodDefault; name: z.ZodString; settings: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>, "many">>; tag: z.ZodOptional>; templates: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { limit: number; name: string; settings?: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[] | undefined; blocks?: { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }[] | undefined; class?: string | undefined; tag?: "article" | "header" | "div" | "aside" | "footer" | "section" | undefined; templates?: ("search" | "article" | "blog" | "collection" | "page" | "product" | "404" | "cart" | "list-collections" | "customers/account" | "customers/activate_account" | "customers/addresses" | "customers/login" | "customers/order" | "customers/register" | "customers/reset_password" | "gift_card" | "index" | "password" | "policy")[] | undefined; }, { name: string; limit?: number | undefined; settings?: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ type: "checkbox"; default?: boolean | undefined; } | { type: "number"; default?: number | undefined; placeholder?: string | undefined; } | { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; } | { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; } | { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[] | undefined; blocks?: { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ type: "checkbox"; default?: boolean | undefined; } | { type: "number"; default?: number | undefined; placeholder?: string | undefined; } | { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; } | { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; } | { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }[] | undefined; class?: string | undefined; tag?: "article" | "header" | "div" | "aside" | "footer" | "section" | undefined; templates?: ("search" | "article" | "blog" | "collection" | "page" | "product" | "404" | "cart" | "list-collections" | "customers/account" | "customers/activate_account" | "customers/addresses" | "customers/login" | "customers/order" | "customers/register" | "customers/reset_password" | "gift_card" | "index" | "password" | "policy")[] | undefined; }>; type SectionSchema = z.infer; declare const parseSectionSchema: (data: unknown) => { limit: number; name: string; settings?: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[] | undefined; blocks?: { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; }[] | undefined; class?: string | undefined; tag?: "article" | "header" | "div" | "aside" | "footer" | "section" | undefined; templates?: ("search" | "article" | "blog" | "collection" | "page" | "product" | "404" | "cart" | "list-collections" | "customers/account" | "customers/activate_account" | "customers/addresses" | "customers/login" | "customers/order" | "customers/register" | "customers/reset_password" | "gift_card" | "index" | "password" | "policy")[] | undefined; } | undefined; declare const parseBlockSchema: (data: unknown) => { type: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; limit?: number | undefined; name?: string | undefined; } | undefined; /** * Basic_settings_schema_map Basic Settings Schema Definition Map * * @type {Record} * @property {z.ZodSchema} text * @property {z.ZodSchema} textarea * @property {z.ZodSchema} number * @property {z.ZodSchema} checkbox * @property {z.ZodSchema} radio * @property {z.ZodSchema} select * @property {z.ZodSchema} rangd */ declare const basic_settings_schema_map: { checkbox: z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>; number: z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>; radio: z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>; range: z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>; select: z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>; text: z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>; textarea: z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>; }; type BasicSettingType = keyof typeof basic_settings_schema_map; declare const SettingSchemaMap: { header: z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }>; paragraph: z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>; article: z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }>; blog: z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }>; collection: z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }>; collection_list: z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }>; image_picker: z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }>; link_list: z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }>; liquid: z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }>; page: z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }>; product: z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }>; product_list: z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }>; color: z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }>; color_background: z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }>; font_picker: z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }>; html: z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }>; richtext: z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }>; url: z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }>; video_url: z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>; checkbox: z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>; number: z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>; radio: z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>; range: z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>; select: z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>; text: z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>; textarea: z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>; }; declare const baseSchema: z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>; type SettingTypes = keyof typeof SettingSchemaMap; type AllSettingTypes = SettingTypes; type Setting = Type extends "paragraph" | "header" ? z.infer<(typeof SettingSchemaMap)[Type]> : Merge, id extends string ? Merge, { id: id; }> : z.infer>; type SettingsMapped> = Array<{ [Key in keyof T]: Key extends string ? Setting : never; }[keyof T]>; declare const getSettingSchema: (id?: string | undefined) => z.ZodUnion<[ z.ZodIntersection; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>; declare const getSettingGroupSchema: () => z.ZodArray; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>, "many">; type SingleSetting = z.infer>; type Settings = z.infer>; type SettingGroup = Settings; declare const parseSettingsGroup: (data: unknown, id_prefix?: string | undefined, id_suffix?: string | undefined) => ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[] | undefined; declare const parseSingleSetting: (data: unknown, id?: string | undefined) => { type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }) | undefined; declare const parseSetting: (data: unknown, id?: string | undefined) => { type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }) | undefined; declare const shopify_settings_schema_map: any; type ShopifySettingType = keyof typeof shopify_settings_schema_map; /* * sidebar_settings_schema_map * @type { Record } * @property {z.ZodSchema } header * @property {z.ZodSchema} paragraph */ declare const sidebar_settings_schema_map: any; type SideBarSettingType = keyof typeof sidebar_settings_schema_map; /** * Basic_settings_schema_map Basic Settings Schema Definition Map * * @type {Record} * @property {z.ZodSchema} text * @property {z.ZodSchema} textarea * @property {z.ZodSchema} number * @property {z.ZodSchema} checkbox * @property {z.ZodSchema} radio * @property {z.ZodSchema} select * @property {z.ZodSchema} rangd */ declare const specialized_settings_schema_map: any; type SpecializedSettingType = keyof typeof specialized_settings_schema_map; /* reference export type ThemeInfo = { name: 'theme_info' theme_name: string //should be package eventually theme_version: string //should be semver eventually theme_author: string theme_documentation_url?: string theme_support_url?: string }*/ declare const theme_info_schema: z.ZodObject<{ name: z.ZodLiteral<"theme_info">; theme_author: z.ZodString; theme_documentation_url: z.ZodOptional; theme_name: z.ZodString; theme_support_url: z.ZodOptional; theme_version: z.ZodString; }, "strip", z.ZodTypeAny, { name: "theme_info"; theme_author: string; theme_name: string; theme_version: string; theme_documentation_url?: string | undefined; theme_support_url?: string | undefined; }, { name: "theme_info"; theme_author: string; theme_name: string; theme_version: string; theme_documentation_url?: string | undefined; theme_support_url?: string | undefined; }>; type ThemeInfo = z.infer; declare const global_settings_section: z.ZodObject<{ name: z.ZodString; settings: z.ZodArray; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>, "many">; }, "strip", z.ZodTypeAny, { name: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; }, { name: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ type: "checkbox"; default?: boolean | undefined; } | { type: "number"; default?: number | undefined; placeholder?: string | undefined; } | { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; } | { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; } | { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; }>; type GlobalSettingsSection = z.infer; declare const global_settings_schema: z.ZodTuple<[ z.ZodObject<{ name: z.ZodLiteral<"theme_info">; theme_author: z.ZodString; theme_documentation_url: z.ZodOptional; theme_name: z.ZodString; theme_support_url: z.ZodOptional; theme_version: z.ZodString; }, "strip", z.ZodTypeAny, { name: "theme_info"; theme_author: string; theme_name: string; theme_version: string; theme_documentation_url?: string | undefined; theme_support_url?: string | undefined; }, { name: "theme_info"; theme_author: string; theme_name: string; theme_version: string; theme_documentation_url?: string | undefined; theme_support_url?: string | undefined; }> ], z.ZodObject<{ name: z.ZodString; settings: z.ZodArray; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"text">; }, "strip", z.ZodTypeAny, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }, { type: "text"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; } & { type: z.ZodLiteral<"textarea">; }, "strip", z.ZodTypeAny, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }, { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodDefault; placeholder: z.ZodOptional; type: z.ZodLiteral<"number">; }, "strip", z.ZodTypeAny, { default: number; type: "number"; placeholder?: string | undefined; }, { type: "number"; default?: number | undefined; placeholder?: string | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; options: z.ZodArray, "many">; type: z.ZodLiteral<"radio">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "radio"; }, { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; }>, z.ZodObject<{ default: z.ZodDefault; type: z.ZodLiteral<"checkbox">; }, "strip", z.ZodTypeAny, { default: boolean; type: "checkbox"; }, { type: "checkbox"; default?: boolean | undefined; }>, z.ZodObject<{ default: z.ZodUnion<[ z.ZodString, z.ZodDefault ]>; group: z.ZodOptional; options: z.ZodArray, "many">; type: z.ZodLiteral<"select">; }, "strip", z.ZodTypeAny, { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; }, { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; }>, z.ZodObject<{ default: z.ZodNumber; max: z.ZodDefault; min: z.ZodDefault; step: z.ZodDefault; type: z.ZodLiteral<"range">; unit: z.ZodUnion<[ z.ZodEnum<[ "px", "%", "em", "rem", "vh" ]>, z.ZodDefault ]>; }, "strip", z.ZodTypeAny, { default: number; type: "range"; max: number; min: number; step: number; unit: string; }, { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; }>, ...(z.ZodObject<{ type: z.ZodLiteral<"article">; }, "strip", z.ZodTypeAny, { type: "article"; }, { type: "article"; }> | z.ZodObject<{ type: z.ZodLiteral<"blog">; }, "strip", z.ZodTypeAny, { type: "blog"; }, { type: "blog"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection">; }, "strip", z.ZodTypeAny, { type: "collection"; }, { type: "collection"; }> | z.ZodObject<{ type: z.ZodLiteral<"collection_list">; }, "strip", z.ZodTypeAny, { type: "collection_list"; }, { type: "collection_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"image_picker">; }, "strip", z.ZodTypeAny, { type: "image_picker"; }, { type: "image_picker"; }> | z.ZodObject<{ type: z.ZodLiteral<"link_list">; }, "strip", z.ZodTypeAny, { type: "link_list"; }, { type: "link_list"; }> | z.ZodObject<{ type: z.ZodLiteral<"liquid">; }, "strip", z.ZodTypeAny, { type: "liquid"; }, { type: "liquid"; }> | z.ZodObject<{ type: z.ZodLiteral<"page">; }, "strip", z.ZodTypeAny, { type: "page"; }, { type: "page"; }> | z.ZodObject<{ type: z.ZodLiteral<"product">; }, "strip", z.ZodTypeAny, { type: "product"; }, { type: "product"; }> | z.ZodObject<{ type: z.ZodLiteral<"product_list">; }, "strip", z.ZodTypeAny, { type: "product_list"; }, { type: "product_list"; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color">; }, "strip", z.ZodTypeAny, { type: "color"; default?: string | undefined; }, { type: "color"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"color_background">; }, "strip", z.ZodTypeAny, { type: "color_background"; default?: string | undefined; }, { type: "color_background"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodString; type: z.ZodLiteral<"font_picker">; }, "strip", z.ZodTypeAny, { default: string; type: "font_picker"; }, { default: string; type: "font_picker"; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"html">; }, "strip", z.ZodTypeAny, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }, { type: "html"; default?: string | undefined; placeholder?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"richtext">; }, "strip", z.ZodTypeAny, { type: "richtext"; default?: string | undefined; }, { type: "richtext"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; type: z.ZodLiteral<"url">; }, "strip", z.ZodTypeAny, { type: "url"; default?: string | undefined; }, { type: "url"; default?: string | undefined; }> | z.ZodObject<{ default: z.ZodOptional; placeholder: z.ZodOptional; type: z.ZodLiteral<"video_url">; }, "strip", z.ZodTypeAny, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }, { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }>)[] ]>, z.ZodObject<{ id: z.ZodString; info: z.ZodOptional; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label?: string | undefined; info?: string | undefined; }, { id: string; label?: string | undefined; info?: string | undefined; }>>, z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"paragraph">; }, "strip", z.ZodTypeAny, { type: "paragraph"; content: string; }, { type: "paragraph"; content: string; }>, z.ZodObject<{ content: z.ZodString; type: z.ZodLiteral<"header">; }, "strip", z.ZodTypeAny, { type: "header"; content: string; }, { type: "header"; content: string; }> ]> ]>, "many">; }, "strip", z.ZodTypeAny, { name: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; }, { name: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ type: "checkbox"; default?: boolean | undefined; } | { type: "number"; default?: number | undefined; placeholder?: string | undefined; } | { options: { value: string; label: string; }[]; type: "radio"; default?: string | number | undefined; } | { default: number; type: "range"; max?: number | undefined; min?: number | undefined; step?: number | undefined; unit?: string | undefined; } | { options: { value: string; label: string; }[]; type: "select"; default?: string | number | undefined; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; }>>; type GlobalSettingsSchema = z.infer; declare const parseThemeSettings: (data: unknown) => [ { name: "theme_info"; theme_author: string; theme_name: string; theme_version: string; theme_documentation_url?: string | undefined; theme_support_url?: string | undefined; }, ...{ name: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; }[] ] | undefined; declare const parseThemeSettingSection: (data: unknown) => { name: string; settings: ({ type: "header"; content: string; } | { type: "paragraph"; content: string; } | (({ default: boolean; type: "checkbox"; } | { default: number; type: "number"; placeholder?: string | undefined; } | { default: string | number; options: { value: string; label: string; }[]; type: "radio"; } | { default: number; type: "range"; max: number; min: number; step: number; unit: string; } | { default: string | number; options: { value: string; label: string; }[]; type: "select"; group?: string | undefined; } | { type: "text"; default?: string | undefined; placeholder?: string | undefined; } | { type: "textarea"; default?: string | undefined; placeholder?: string | undefined; } | { type: "article"; } | { type: "blog"; } | { type: "collection"; } | { type: "collection_list"; } | { type: "image_picker"; } | { type: "link_list"; } | { type: "liquid"; } | { type: "page"; } | { type: "product"; } | { type: "product_list"; } | { type: "color"; default?: string | undefined; } | { type: "color_background"; default?: string | undefined; } | { default: string; type: "font_picker"; } | { type: "html"; default?: string | undefined; placeholder?: string | undefined; } | { type: "richtext"; default?: string | undefined; } | { type: "url"; default?: string | undefined; } | { type: "video_url"; default?: string | undefined; placeholder?: string | undefined; }) & { id: string; label?: string | undefined; info?: string | undefined; }))[]; } | undefined; export { isEncodedGID, isGID, isParsableToSID, isSID, shopifyMediaURL, toGID, toSID, parseBlockSchema, parseSectionSchema, parseSetting, parseSettingsGroup, parseSingleSetting, parseThemeSettings, parseThemeSettingSection }; export type { BlockSchema, ElementTags, PageTypes, SectionSchema, BasicSettingType, AllSettingTypes, Setting, SettingGroup, Settings, SettingsMapped, SettingTypes, SingleSetting, ShopifySettingType, SideBarSettingType, SpecializedSettingType, GlobalSettingsSchema, GlobalSettingsSection, ThemeInfo }; //# sourceMappingURL=index.d.cts.map