import { SetupWidgetState, SetupWidgetConfig } from '@wix/bex-core'; /** * Creates a {@link SetupWidgetState} instance and wires its lifecycle, then * returns it to be passed to the `SetupWidget` component — the same pattern as * `useCollection` → `CollectionState`. * * The widget owns loading / error / refetch; the returned state also exposes a * public API to read the steps / progress and to change a step's status * (`state.steps`, `state.getStep`, `state.setStepStatus`). * * @example * const setup = useSetupWidget({ fetchData }); * return ; */ export declare const useSetupWidget: ({ fetchData, }: SetupWidgetConfig) => SetupWidgetState; //# sourceMappingURL=useSetupWidget.d.ts.map