import type { GetStylesApi, MantineColor } from '../../core'; import type { TransitionOverride } from '../Transition'; import type { TourFactory } from './Tour'; import type { TourRootFactory } from './TourRoot/TourRoot'; export interface TourLabels { /** Label for the skip button @default "Skip" */ skip: string; /** Label for the back button @default "Back" */ back: string; /** Label for the next button @default "Next" */ next: string; /** Label for the close/finish button @default "Close" */ close: string; /** Function that returns step counter text @default (current, total) => `${current} of ${total}` */ stepCounter: (current: number, total: number) => string; /** Label for the beacon button, the step title is appended when it is a string @default "Start tour" */ beacon: string; } export declare const defaultLabels: TourLabels; export interface TourContextValue { /** Returns styles for the given selector */ getStyles: GetStylesApi; /** Current active step index */ step: number; /** Sets the active step index */ setStep: (step: number) => void; /** Total number of steps */ stepsCount: number; /** Closes the tour */ close: () => void; /** Whether `Tour.Overlay` is rendered */ withOverlay: boolean; /** Whether pointer events pass through the spotlight cutout to the target element */ withOverlayInteraction: boolean; /** Whether `Tour.CloseButton` is rendered */ withCloseButton: boolean; /** Key of `theme.colors` or any valid CSS color passed to `Tour.Navigation` next button */ color?: MantineColor; /** Padding around the spotlight cutout in px */ spotlightPadding: number; /** Border radius of the spotlight cutout in px */ spotlightRadius: number; /** Whether clicking the overlay closes the tour */ closeOnOverlayClick: boolean; /** Default transition props of `Tour.Tooltip` */ transitionProps: TransitionOverride | undefined; /** Labels for tour UI elements */ labels: TourLabels; /** Id of the mounted `Tour.Title` (or the generated fallback), referenced by the tooltip `aria-labelledby` */ titleId: string; /** Id of the mounted `Tour.Body` (or the generated fallback), referenced by the tooltip `aria-describedby` */ bodyId: string; /** Whether `Tour.Title` is currently mounted */ titleMounted: boolean; /** Whether `Tour.Body` is currently mounted */ bodyMounted: boolean; /** Registers the id of the mounted `Tour.Title`, `null` when it unmounts */ registerTitle: (id: string | null) => void; /** Registers the id of the mounted `Tour.Body`, `null` when it unmounts */ registerBody: (id: string | null) => void; /** Registers the current step target element, used to skip arrow hotkeys fired from inside it */ setTargetElement: (element: HTMLElement | null) => void; } export declare const TourContext: import("react").Context; export declare function useTourContext(): TourContextValue; export declare const TourProvider: import("react").Provider;