import type { Activity, Stack, StackflowPlugin } from "@stackflow/core"; import type React from "react"; export type StackflowReactPlugin = () => { /** * Determine how to render by using the stack state */ render?: (args: { stack: Stack & { render: (overrideStack?: Partial) => { activities: Array) => React.ReactNode; }>; }; }; initialContext: any; }) => React.ReactElement | null; /** * Wrap `` component with your `Provider` or custom elements */ wrapStack?: (args: { stack: Stack & { render: () => React.ReactNode; }; initialContext: any; }) => React.ReactElement | null; /** * Wrap an activity with your `Provider` or custom elements */ wrapActivity?: (args: { activity: Activity & { render: () => React.ReactNode; }; initialContext: any; }) => React.ReactElement | null; } & ReturnType; //# sourceMappingURL=StackflowReactPlugin.d.ts.map