import { PinceauTransformFunction, PathMatch, PinceauTransformContext } from '@pinceau/core'; import { PinceauStyleFunctionContext, RuntimeParts } from './index.cjs'; import { namedTypes, ASTNode } from 'ast-types'; import { NodePath } from 'ast-types/lib/node-path'; import '@pinceau/outputs'; import '@pinceau/theme'; import '@pinceau/outputs/theme'; import 'sfc-composer'; /** * Resolve transform context runtime features from `css()` function. * * Useful for frameworks runtime engine integrations. */ declare const resolveStyleFunctionContext: PinceauTransformFunction; declare function resolveStyleFunctionTypeIdElement(callee: PathMatch, { type: targetType, index: blockIndex }: Partial, fnIndex?: number): { type: "css" | "styled" | "$styled"; id: string; element: "object" | "text" | "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" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noscript" | "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" | "tr" | "track" | "u" | "ul" | "use" | "var" | "video" | "wbr" | "circle" | "clipPath" | "defs" | "ellipse" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "tspan" | undefined; }; /** * Resolve transform context runtime features from `css()` function. * * Useful for frameworks runtime engine integrations. */ declare const resolveStylePropContext: PinceauTransformFunction; declare function createUniqueClass(devId?: string): string; declare const elements: 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", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]; type CSSFunctionSource = NodePath & ASTNode & { loc: namedTypes.SourceLocation; }; type StyledFunctionSource = NodePath & ASTNode & { loc: namedTypes.SourceLocation; }; declare function isPropertyValueType(node: any): boolean; declare function resolveStyleArg(transformContext: PinceauTransformContext, arg: CSSFunctionSource | StyledFunctionSource, localTokens: PinceauStyleFunctionContext['localTokens'], computedStyles: PinceauStyleFunctionContext['computedStyles']): void; declare function hasRuntimeStyling(transformContext: PinceauTransformContext, type?: 'computedStyles' | 'variants'): boolean; declare function hasIdentifier(styleFn: PinceauStyleFunctionContext): boolean; declare function findSelfBindingFunction(transformContext: PinceauTransformContext): PinceauStyleFunctionContext | undefined; declare function isSelfBindingFunction({ id }: { id: string; }): boolean; declare function generateStyledComponent(styleFn: PinceauStyleFunctionContext, runtimeParts: RuntimeParts, withPropNames?: string | boolean): string; declare function generatePinceauRuntimeFunction(variantsProps?: { [key: string]: any; }, runtimeParts?: RuntimeParts, outputVariantsKeys?: string | boolean): string; declare const PRESENCE_REGEX: RegExp; declare const IDENTIFIER_REGEX: RegExp; declare const pluginTypes: { imports: string[]; global: string[]; }; export { IDENTIFIER_REGEX, PRESENCE_REGEX, createUniqueClass, elements, findSelfBindingFunction, generatePinceauRuntimeFunction, generateStyledComponent, hasIdentifier, hasRuntimeStyling, isPropertyValueType, isSelfBindingFunction, pluginTypes, resolveStyleArg, resolveStyleFunctionContext, resolveStyleFunctionTypeIdElement, resolveStylePropContext };