/** * Fluent Grow - Recipe API * ------------------------ * Thin wrapper around the core RecipeEngine to provide a developer-friendly * interface for defining recipes with base/variants/compound/selectors and * emitting constructable stylesheets for zero-runtime usage. */ import type { CSSProperties } from '../../utils/css-engine'; import { type VariantValue, type VariantDefinitions, type CompoundVariant, type RecipeSelectors } from '../../core/recipe-engine'; export interface RecipeDefinition> { base: CSSProperties; variants?: VariantDefinitions; compoundVariants?: Array>; selectors?: RecipeSelectors; tokens?: CSSProperties; } export interface CompiledRecipe { stylesheet: CSSStyleSheet; selectors: RecipeSelectors; } export declare function createRecipe>(definition: RecipeDefinition): { compute(variants?: Partial): import("../../core/recipe-engine").ComputedRecipe; compile(variants?: Partial, hostSelector?: string): CompiledRecipe; withResponsiveSelectors(responsive: Record): /*elided*/ any; /** * Adds fallbacks using @supports wrappers, without mutating the original base. * - :has() -> provide alternative selectors under @supports not (selector(:has(*))) * - color-mix/oklch -> provide host-level fallback styles under @supports not (color: color-mix(...)) */ withFallbacks(options: { hasFallbacks?: RecipeSelectors; colorMixHostFallback?: CSSProperties; }): /*elided*/ any; }; //# sourceMappingURL=recipe.d.ts.map