import type { PropsWithChildren, ReactElement } from 'react'; import type { Gasket, MaybeAsync } from '@gasket/core'; type LayoutOptions = { index: number; } type Layout = (props: PropsWithChildren) => MaybeAsync; export function withGasketData( gasket: Gasket, options?: LayoutOptions ): (layout: Layout) => (props: PropsWithChildren) => Promise