import type { TourOptions, UseTourReturn } from '../../types/tour';
/**
* Simplified hook for creating guided tours
*
* Combines step management, tooltip integration, and navigation into a single,
* headless API. Users define steps and get back ready-to-use state and controls.
*
* @example
* ```tsx
* // Simple usage
* const tour = useTour({
* steps: [
* { target: 'sidebar', content: 'Navigate from here' },
* { target: 'search', content: 'Search for items' },
* { target: 'profile', content: 'Your account settings' },
* ],
* });
*
* return (
* <>
*
*
* {tour.isActive && (
*
* {tour.progress.current} of {tour.progress.total}
*
*
*
*
* )}
*
*
* >
* );
* ```
*
* @example
* ```tsx
* // Built-in controls instead of your own
* const tour = useTour({
* steps: [
* { target: 'sidebar', content: 'Navigate from here' },
* { target: 'search', content: 'Search for items' },
* ],
* navigation: { showControls: true },
* progress: { show: true },
* });
* ```
*
* @example
* ```tsx
* // Advanced usage with callbacks
* const tour = useTour({
* steps: [
* {
* target: 'sidebar',
* title: 'Navigation',
* content: 'Access all sections here',
* placement: 'right',
* onEnter: () => analytics.track('tour_step_1'),
* },
* {
* target: 'search',
* content: (step) => `Step ${step.index + 1}: Search here`,
* condition: () => hasSearchFeature,
* },
* ],
* onStart: () => console.log('Tour started'),
* onEnd: (completed) => console.log(completed ? 'Completed!' : 'Skipped'),
* onStepChange: (step, direction) => trackStep(step),
* onTargetMissing: (step) => logger.warn('missing target', step.target),
* tooltipOptions: { placement: 'bottom', interactive: true },
* autoScroll: true,
* });
*
* // start() reports whether the tour actually opened
* if (tour.start()) {
* markTourAsSeen();
* }
* ```
*/
export declare function useTour(options: TourOptions): UseTourReturn;
//# sourceMappingURL=useTour.d.ts.map