import { Any, ContentSourceMap, ContentSourceMap as ContentSourceMap$1, ContentSourceMapDocument, ContentSourceMapDocumentBase, ContentSourceMapDocumentValueSource, ContentSourceMapDocuments, ContentSourceMapLiteralSource, ContentSourceMapMapping, ContentSourceMapMappings, ContentSourceMapParsedPath, ContentSourceMapParsedPath as ContentSourceMapParsedPath$1, ContentSourceMapParsedPathKeyedSegment, ContentSourceMapPaths, ContentSourceMapRemoteDocument, ContentSourceMapSource, ContentSourceMapUnknownSource, ContentSourceMapValueMapping, IndexTuple, KeyedSegment, Path, PathSegment, SanityDocument } from "@sanity/client/csm"; import { SanityNode, SanityNode as SanityNode$1, encodeSanityNodeData } from "@sanity/visual-editing-csm"; import { ForwardRefExoticComponent, HTMLProps, SVGProps } from "react"; /** @public */ type SanityKey = '_createdAt' | '_dataset' | '_id' | '_key' | '_originalId' | '_projectId' | '_ref' | '_rev' | '_strengthenOnPublish' | '_type' | '_updatedAt' | '_weak'; /** @public */ type SanityPrimitive = string | number | boolean | null; /** @public */ type SourceNode = Exclude> = { $$type$$: 'sanity'; path: string | undefined; source: SanityNode$1 | undefined; value: T; }; /** @public */ type WrappedValue = T extends string ? SourceNode : T extends number ? SourceNode : T extends boolean ? SourceNode : T extends Array ? Array> : T extends {} ? { [P in keyof T]: P extends SanityKey ? T[P] : WrappedValue } : T extends string ? string : T extends null ? null : T extends undefined ? undefined : never; /** @public */ type UnwrappedValue> = W extends SourceNode ? string : W extends SourceNode ? number : W extends SourceNode ? boolean : W extends Array ? Array> : W extends {} ? { [P in keyof W]: P extends SanityKey ? W[P] : UnwrappedValue } : W extends string ? string : W extends null ? null : W extends undefined ? undefined : never; /** @public */ interface SanityNodeContext { baseUrl: string; tool?: string; workspace?: string; } /** @public */ declare function unwrapData = WrappedValue>(wrapper: S): UnwrappedValue; /** @public */ declare function wrapData(context: SanityNodeContext, value: T, sourceMap: ContentSourceMap$1 | undefined, resultPath?: ContentSourceMapParsedPath$1, keyedResultPath?: ContentSourceMapParsedPath$1): WrappedValue; interface SanityElementProps { children?: SourceNode | null; } declare const htmlElements: readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "webview"]; declare const svgElements: readonly ["animate", "circle", "defs", "desc", "ellipse", "g", "image", "line", "filter", "marker", "mask", "metadata", "path", "pattern", "polygon", "polyline", "rect", "stop", "svg", "switch", "symbol", "text", "tspan", "use", "view", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "linearGradient", "radialGradient", "textPath"]; type SanityHTMLElements = Record<(typeof htmlElements)[number], ForwardRefExoticComponent, 'children' | 'ref'>>>; type SanitySVGElements = Record<(typeof svgElements)[number], ForwardRefExoticComponent, 'children' | 'ref'>>>; type SanityElements = SanityHTMLElements & SanitySVGElements; declare const sanity: SanityElements; export { type Any, type ContentSourceMap, type ContentSourceMapDocument, type ContentSourceMapDocumentBase, type ContentSourceMapDocumentValueSource, type ContentSourceMapDocuments, type ContentSourceMapLiteralSource, type ContentSourceMapMapping, type ContentSourceMapMappings, type ContentSourceMapParsedPath, type ContentSourceMapParsedPathKeyedSegment, type ContentSourceMapPaths, type ContentSourceMapRemoteDocument, type ContentSourceMapSource, type ContentSourceMapUnknownSource, type ContentSourceMapValueMapping, type IndexTuple, type KeyedSegment, type Path, type PathSegment, type SanityDocument, type SanityElementProps, SanityElements, SanityHTMLElements, type SanityKey, type SanityNode, type SanityNodeContext, type SanityPrimitive, SanitySVGElements, type SourceNode, type UnwrappedValue, type WrappedValue, encodeSanityNodeData, type htmlElements, sanity, type svgElements, unwrapData, wrapData }; //# sourceMappingURL=jsx.d.ts.map