import * as React from 'react'; import { type CarouselRailIndicatorsAs } from './crContext.js'; import type { CarouselRailSlide } from './types.js'; import { Viewport } from './parts/Viewport.js'; import { Slide } from './parts/Slide.js'; import { Prev } from './parts/Prev.js'; import { Next } from './parts/Next.js'; import { Indicators } from './parts/Indicators.js'; import { AutoplayToggle } from './parts/AutoplayToggle.js'; export { useCarouselIndex } from './useCarouselIndex.js'; export type { CarouselRailSlide } from './types.js'; export type { CarouselRailIndicatorsProps } from './parts/Indicators.js'; export interface CarouselRailRootProps { /** Accessible name of the carousel. */ label: string; /** Slides in order. */ slides: CarouselRailSlide[]; /** Controlled index of the first visible slide. Pair with `onIndexChange`. */ index?: number | undefined; /** Initial slide index when uncontrolled. */ defaultIndex?: number | undefined; /** Called with the next slide index. */ onIndexChange?: ((index: number) => void) | undefined; /** Slides visible at once, or 'auto' to use each slide's own width. */ slidesPerView?: number | 'auto' | undefined; /** Wraps keyboard focus from the last item back to the first. */ loop?: boolean | undefined; /** {interval ms ≥5000} | false — rotates only under the continuous gate. */ autoplay?: { interval: number; } | false | undefined; /** Marks the rail as sitting over media (data-ag-backdrop="media") so controls stay legible. */ overMedia?: boolean | undefined; /** Alias of `` for the default layout. */ indicatorsAs?: CarouselRailIndicatorsAs | undefined; /** Class name merged onto the root element. */ className?: string | undefined; /** Compose the parts yourself; omitted → Autoplay toggle, Viewport, Prev, Next, Indicators. */ children?: React.ReactNode; } declare function Root(props: CarouselRailRootProps): React.ReactElement; export declare const CarouselRail: { readonly Root: typeof Root; readonly Viewport: typeof Viewport; readonly Slide: typeof Slide; readonly Prev: typeof Prev; readonly Next: typeof Next; readonly Indicators: typeof Indicators; readonly AutoplayToggle: typeof AutoplayToggle; }; export type CarouselRail = typeof CarouselRail; //# sourceMappingURL=CarouselRail.d.ts.map