import React from "react"; import { ResponsiveValue } from "styled-system"; import { SpacingUnit } from "../../Theme"; import { BoxProps } from "../Box"; import { CarouselNavigationProps, CarouselNext, CarouselPrevious } from "./CarouselNavigation"; /** CarouselRailProps */ export declare type CarouselRailProps = BoxProps & { transition?: ResponsiveValue; }; /** A `CarouselRail` slides back and forth within the viewport */ export declare const CarouselRail: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute, HTMLDivElement>, keyof BoxProps> & BoxProps, "ref"> & { ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject | null | undefined; }, CarouselRailProps>> & string; /** CarouselCellProps */ export declare type CarouselCellProps = BoxProps; /** A `CarouselCell` wraps a single child in the carousel */ export declare const CarouselCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit, HTMLDivElement>, keyof BoxProps> & BoxProps, "ref"> & { ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject | null | undefined; }, never>> & string; /** * We share this spacing value with the `Swiper` component */ export declare const CELL_GAP_PADDING_AMOUNT: SpacingUnit[]; export interface CarouselProps extends BoxProps { initialIndex?: number; children: React.ReactNode; Next?: typeof CarouselNext | React.FC>; Previous?: typeof CarouselPrevious | React.FC>; Rail?: typeof CarouselRail | React.FC>; /** * If providing a custom `Cell` you must forward a ref so * that cell widths can be calculated. */ Cell?: React.ForwardRefExoticComponent; paginateBy?: "page" | "cell"; onChange?(index: number): void; onPageCountChange?(count: number): void; } /** * A `Carousel` accepts children or a series of children that are JSX elements. * It presents them in a horizontal rail and when the width exceeds the width * of the viewport, it presents navigation arrows and allows a user to page * through them. */ export declare const Carousel: React.FC>;