UNPKG

534 BTypeScriptView Raw
1import type { RecipeProps } from "./generated/recipes.gen";
2import type { RecipeKey } from "./use-recipe";
3import type { SlotRecipeKey } from "./use-slot-recipe";
4declare const useParentRecipeProps: () => {
5 recipe?: import("./recipe.types").RecipeDefinition;
6};
7interface Props<T> {
8 children: React.ReactNode;
9 value: RecipeProps<T>;
10}
11declare function RecipePropsProvider<T extends RecipeKey | SlotRecipeKey>(props: Props<T>): import("react/jsx-runtime").JSX.Element;
12export { RecipePropsProvider, useParentRecipeProps };