import * as class_variance_authority_types from 'class-variance-authority/types'; import { VariantProps } from 'class-variance-authority'; import * as React from 'react'; import { RenderProp } from '@tour-kit/core'; export { AudienceCondition, AudienceProp, FrequencyRule, RenderProp, UILibrary, UILibraryProvider, UILibraryProviderProps, UnifiedSlot, UnifiedSlotProps, cn, isSegmentAudience, useReducedMotion, useResolvedText, useUILibrary } from '@tour-kit/core'; import { A as AnnouncementMedia, a as AnnouncementAction, M as ModalOptions, S as SlideoutOptions, B as BannerOptions, T as ToastOptions, b as SpotlightOptions, c as AnnouncementConfig } from './announcement-Tzq6tyeX.js'; export { d as BannerPosition, C as ChangelogEntry, e as SerializeFeedOptions, f as SlideoutPosition, g as ToastPosition, s as serializeFeed } from './announcement-Tzq6tyeX.js'; export { AnnouncementActionClickedEvent, AnnouncementCompletedEvent, AnnouncementDequeuedEvent, AnnouncementDismissedEvent, AnnouncementEvent, AnnouncementEventType, AnnouncementQueuedEvent, AnnouncementRegisteredEvent, AnnouncementScheduler, AnnouncementShownEvent, AnnouncementsContext, AnnouncementsContextValue, AnnouncementsFilter, AnnouncementsProvider, AnnouncementsProviderProps, BaseAnnouncementEvent, HeadlessBanner, HeadlessBannerProps, HeadlessBannerRenderProps, HeadlessModal, HeadlessModalProps, HeadlessModalRenderProps, HeadlessSlideout, HeadlessSlideoutProps, HeadlessSlideoutRenderProps, HeadlessSpotlight, HeadlessSpotlightProps, HeadlessSpotlightRenderProps, HeadlessToast, HeadlessToastProps, HeadlessToastRenderProps, PriorityQueue, UseAnnouncementQueueReturn, UseAnnouncementReturn, UseAnnouncementsReturn, canShowAfterDismissal, canShowByFrequency, createComparator, getViewLimit, useAnnouncement, useAnnouncementQueue, useAnnouncements, useAnnouncementsContext } from './headless.js'; export { matchesAudience, validateConditions } from '@tour-kit/core/engine'; export { Slot } from '@radix-ui/react-slot'; export { T as ToastAdapter, a as ToastAdapterHandle, b as ToastAdapterRenderArgs } from './toast-adapter-DRX4OW9l.js'; export { ChangelogEntryProps, ChangelogFilterProps, ChangelogPageProps, Reaction, ReactionsProps } from './changelog/index.js'; export { d as AnnouncementPriority, b as AnnouncementState, c as AnnouncementStorageAdapter, A as AnnouncementVariant, e as DEFAULT_QUEUE_CONFIG, D as DismissalReason, P as PriorityOrder, Q as QueueConfig, f as QueueItem, S as StackBehavior } from './types-MpBl5-ej.js'; export { F as FORCE_SHOW_BYPASS, a as ForceShowBypassKey } from './reducer-CkKL7M9K.js'; export { e as evaluateAnnouncementAudience } from './eligibility-CpRraSbH.js'; import '@tour-kit/media'; import 'react/jsx-runtime'; import '@tour-kit/scheduling/engine'; declare const overlayVariants: (props?: ({ blur?: "none" | "sm" | "md" | "lg" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface AnnouncementOverlayProps extends React.HTMLAttributes, VariantProps { /** Whether the overlay is visible */ open?: boolean; /** Callback when overlay is clicked */ onClose?: () => void; } declare const AnnouncementOverlay: React.ForwardRefExoticComponent>; interface AnnouncementCloseProps extends Omit, 'children'> { asChild?: boolean; children?: React.ReactNode | RenderProp; /** Callback when close button is clicked */ onClose?: () => void; } declare const AnnouncementClose: React.ForwardRefExoticComponent>; interface AnnouncementContentProps extends Omit, 'title'> { /** Title of the announcement (any ReactNode — strings render as

, JSX passes through). */ title?: React.ReactNode; /** Description/body content */ description?: React.ReactNode; /** Media to display */ media?: AnnouncementMedia; /** Render title/description using Radix Dialog primitives. */ asDialogContent?: boolean; /** Title element props */ titleProps?: React.HTMLAttributes; /** Description element props */ descriptionProps?: React.HTMLAttributes; } declare const AnnouncementContent: React.ForwardRefExoticComponent>; interface AnnouncementActionsProps extends React.HTMLAttributes { /** Primary action configuration */ primaryAction?: AnnouncementAction; /** Secondary action configuration */ secondaryAction?: AnnouncementAction; /** Callback when any action is clicked */ onAction?: (type: 'primary' | 'secondary') => void; /** Callback when dismiss should happen (if action.dismissOnClick is true) */ onDismiss?: () => void; /** Layout direction */ direction?: 'horizontal' | 'vertical'; } declare const AnnouncementActions: React.ForwardRefExoticComponent>; declare const modalOverlayVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string; declare const modalContentVariants: (props?: ({ size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface AnnouncementModalProps extends Omit, 'title'>, VariantProps { /** Announcement ID */ id: string; /** Whether the modal is open (controlled) */ open?: boolean; /** Callback when open state changes */ onOpenChange?: (open: boolean) => void; /** Modal options */ options?: ModalOptions; /** Content to render inside modal */ children?: React.ReactNode; /** Use config from provider */ useConfig?: boolean; } declare const AnnouncementModal: React.ForwardRefExoticComponent>; declare const slideoutOverlayVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string; declare const slideoutContentVariants: (props?: ({ position?: "left" | "right" | null | undefined; size?: "sm" | "md" | "lg" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface AnnouncementSlideoutProps extends Omit, 'title'>, VariantProps { /** Announcement ID */ id: string; /** Whether the slideout is open (controlled) */ open?: boolean; /** Callback when open state changes */ onOpenChange?: (open: boolean) => void; /** Slideout options */ options?: SlideoutOptions; /** Content to render inside slideout */ children?: React.ReactNode; /** Use config from provider */ useConfig?: boolean; } declare const AnnouncementSlideout: React.ForwardRefExoticComponent>; declare const bannerVariants: (props?: ({ position?: "top" | "bottom" | null | undefined; intent?: "info" | "success" | "warning" | "error" | "neutral" | null | undefined; sticky?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface AnnouncementBannerProps extends Omit, 'title'>, VariantProps { /** Announcement ID */ id: string; /** Whether the banner is visible (controlled) */ open?: boolean; /** Callback when visibility changes */ onOpenChange?: (open: boolean) => void; /** Banner options */ options?: BannerOptions; /** Content to render inside banner */ children?: React.ReactNode; /** Use config from provider */ useConfig?: boolean; } declare const AnnouncementBanner: React.ForwardRefExoticComponent>; declare const toastContainerVariants: (props?: ({ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const toastVariants: (props?: ({ intent?: "info" | "success" | "warning" | "error" | null | undefined; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const toastProgressVariants: (props?: ({ intent?: "info" | "success" | "warning" | "error" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface AnnouncementToastProps extends Omit, 'title'>, VariantProps { /** Announcement ID */ id: string; /** Whether the toast is visible (controlled) */ open?: boolean; /** Callback when visibility changes */ onOpenChange?: (open: boolean) => void; /** Toast options */ options?: ToastOptions; /** Content to render inside toast */ children?: React.ReactNode; /** Use config from provider */ useConfig?: boolean; } declare const AnnouncementToast: React.ForwardRefExoticComponent>; declare const spotlightOverlayVariants: (props?: ({ visible?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const spotlightContentVariants: (props?: ({ placement?: "top" | "bottom" | "left" | "right" | null | undefined; variant?: "default" | "legacy-spotlight" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface AnnouncementSpotlightProps extends Omit, 'title'>, VariantProps { /** Announcement ID */ id: string; /** Whether the spotlight is visible (controlled) */ open?: boolean; /** Callback when visibility changes */ onOpenChange?: (open: boolean) => void; /** Spotlight options */ options?: SpotlightOptions; /** Content to render inside spotlight */ children?: React.ReactNode; /** Use config from provider */ useConfig?: boolean; /** * Visual variant. * - `'default'` (v4.0+) renders an inset-stroke cutout + directional arrow, * passing WCAG 2.1 AA contrast on light backgrounds. * - `'legacy-spotlight'` keeps the v3.0 soft radial-gradient cutout for one * minor cycle (until v4.1) so themes that rely on the legacy look can * migrate without a hard break. */ variant?: 'default' | 'legacy-spotlight'; /** * Color of the inset stroke (and the directional arrow). `'auto'` resolves * to white on dark and `hsl(var(--primary))` on light via * `prefers-color-scheme`. Pass any CSS color string to override. * Ignored when `variant="legacy-spotlight"`. */ strokeColor?: 'auto' | string; } declare const AnnouncementSpotlight: React.ForwardRefExoticComponent>; /** * Filter a list of announcement configs by their `audience` prop. Mirror of * `@tour-kit/hints`'s `useHintFilter` for `AnnouncementConfig[]`. Uses * `useSegments()` (bulk read) once at the top of the provider to satisfy * rules-of-hooks under dynamic announcement lists — never call `useSegment` * inside `.filter`. Only the segment-shape audience branch is filtered here; * array-shape audiences pass through to the scheduler for backward compat. */ declare function useFilteredAnnouncements(announcements: AnnouncementConfig[]): AnnouncementConfig[]; export { AnnouncementAction, AnnouncementActions, type AnnouncementActionsProps, AnnouncementBanner, type AnnouncementBannerProps, AnnouncementClose, type AnnouncementCloseProps, AnnouncementConfig, AnnouncementContent, type AnnouncementContentProps, AnnouncementMedia, AnnouncementModal, type AnnouncementModalProps, AnnouncementOverlay, type AnnouncementOverlayProps, AnnouncementSlideout, type AnnouncementSlideoutProps, AnnouncementSpotlight, type AnnouncementSpotlightProps, AnnouncementToast, type AnnouncementToastProps, BannerOptions, ModalOptions, SlideoutOptions, SpotlightOptions, ToastOptions, bannerVariants, modalContentVariants, modalOverlayVariants, slideoutContentVariants, slideoutOverlayVariants, spotlightContentVariants, spotlightOverlayVariants, toastContainerVariants, toastProgressVariants, toastVariants, useFilteredAnnouncements };