/* eslint-disable */ import type { SlotRecipeRuntimeFn, RecipeVariantProps } from '../types/recipe'; import type { JsxHTMLProps, JsxStyleProps, Assign } from '../types/system-types'; import type { JsxFactoryOptions, ComponentProps, DataAttrs, AsProps } from '../types/jsx'; import type { ComponentType, ElementType } from 'react' interface UnstyledProps { unstyled?: boolean | undefined } type SvaFn = SlotRecipeRuntimeFn interface SlotRecipeFn { __type: any __slot: string (props?: any): any } type SlotRecipe = SvaFn | SlotRecipeFn type InferSlot = R extends SlotRecipeFn ? R['__slot'] : R extends SvaFn ? S : never interface WithProviderOptions

{ defaultProps?: (Partial

& DataAttrs) | undefined } type StyleContextProvider = ComponentType< JsxHTMLProps & UnstyledProps & AsProps, Assign, JsxStyleProps>> > type StyleContextRootProvider = ComponentType< ComponentProps & UnstyledProps & RecipeVariantProps > type StyleContextConsumer = ComponentType< JsxHTMLProps & UnstyledProps & AsProps, JsxStyleProps> > export interface StyleContext { withRootProvider: ( Component: T, options?: WithProviderOptions> | undefined ) => StyleContextRootProvider withProvider: ( Component: T, slot: InferSlot, options?: JsxFactoryOptions> | undefined ) => StyleContextProvider withContext: ( Component: T, slot: InferSlot, options?: JsxFactoryOptions> | undefined ) => StyleContextConsumer } export declare function createStyleContext(recipe: R): StyleContext