import { ReactNode } from 'react'; import { Tour } from './types'; import { TrackEventType, TrackEventOptions } from './toursContext/useTourMutations'; export interface ToursContextValue { tours: Tour[]; pageTours: Tour[]; loading: boolean; error: Error | null; refetch: () => void; trackProgress: (tourId: string, status: 'started' | 'completed' | 'skipped', stepId?: string) => Promise; recordStepCompletion: (tourId: string, stepId: string) => Promise; trackEvent: (eventType: TrackEventType, tourId: string, options?: TrackEventOptions) => Promise; autoStartTour: Tour | null; productId: string | undefined; moduleId: string | undefined; pageId: string | undefined; } export interface ToursProviderProps { children: ReactNode; /** Default page ID when path is "/" (e.g., "workspaces", "fluidgrids") */ defaultPageId?: string; /** Custom function to derive pageId from pathname (overrides default) */ getPageIdFromPath?: (pathname: string) => string | undefined; /** Disable automatic tour bootstrap for the current route tree */ disabled?: boolean; } export declare function ToursProvider({ children, defaultPageId, getPageIdFromPath, disabled, }: ToursProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useToursContext(): ToursContextValue; export declare function useSafeToursContext(): ToursContextValue; export declare function useTours(): { tours: Tour[]; loading: boolean; error: Error | null; refetch: () => void; trackProgress: (tourId: string, status: "started" | "completed" | "skipped", stepId?: string) => Promise; }; export declare function useAutoStartTour(): Tour | null; //# sourceMappingURL=ToursContext.d.ts.map