import { type ReactNode } from "react";
import { type OnboardingWizardConfig } from "./onboarding-context";
/**
* HOC to inject onboarding props into step components
* Use this when defining step components to receive navigation helpers
*/
export declare function withOnboardingStep
(Component: React.ComponentType
): React.ComponentType>;
export interface OnboardingWizardProps extends OnboardingWizardConfig {
/** Optional layout wrapper component */
layout?: React.ComponentType<{
children: ReactNode;
}>;
}
/**
* Self-contained onboarding wizard with routing
*
* Automatically detects environment:
* - In Next.js: Uses MemoryRouter with URL sync to avoid conflicts
* - In Vite/SPA: Uses BrowserRouter for native browser history
*
* @example
* ```tsx
* navigate('/dashboard')}
* />
* ```
*/
export declare function OnboardingWizard({ basePath, steps, onComplete, onExit, layout, }: OnboardingWizardProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=onboarding-router.d.ts.map