import { Accessor, Component, FlowComponent } from "solid-js"; import { KeenSliderHooks, KeenSliderInstance, KeenSliderOptions, KeenSliderPlugin, TrackDetails } from "keen-slider"; export type SliderControls = [create: (el: HTMLElement) => void, helpers: { current: Accessor; next: VoidFunction; prev: VoidFunction; moveTo: (id: number, duration?: number, absolute?: boolean, easing?: (t: number) => number) => void; details: () => TrackDetails; slider: () => KeenSliderInstance | undefined; destroy: VoidFunction; update: VoidFunction; }]; /** * Creates a slider powered by KeenSlider. * * @param options - Values to initialize the slider with * @param plugins - Extensions that enhance KeenSlider options * @returns Returns mount and helper methods * @returns create - Mounts the slider on provided element * @returns helpers.current - Current slide number * @returns helpers.next - Function to trigger the next slide * @returns helpers.prev - Function to trigger the previous slide * @returns helpers.details - Provides details about the current slider * @returns helpers.slider - Returns the KeenSlider instance * @returns helpers.destroy - Manual destroy function * * @example * ```ts * const [create, { prev, next }] = createSlider(); *
...
* ``` */ export declare const createSlider: (options?: KeenSliderOptions | Accessor>, ...plugins: KeenSliderPlugin[]) => SliderControls; interface Func { ([...args]: any, args2?: any): T; } export declare function returnType(func: Func): T; export declare const SliderContext: import("solid-js").Context; next: VoidFunction; prev: VoidFunction; moveTo: (id: number, duration?: number, absolute?: boolean, easing?: (t: number) => number) => void; details: () => import("keen-slider").TrackDetails; slider: () => import("keen-slider").KeenSliderInstance<{}, {}, import("keen-slider").KeenSliderHooks> | undefined; destroy: VoidFunction; update: VoidFunction; } | null>>; /** * A helpful and simple Provider to wrap your Slider if controls such as SliderButton are used. * * @param props.options - Accepts all KeenSlider options. * @param props.plugins - A list of Solid Slider or Keen slider plugins. */ export declare const SliderProvider: FlowComponent; /** * Main Slider component for specifying the Slider on the page. * * @param props.options - Accepts all KeenSlider options. * @param props.plugins - A list of Solid Slider or Keen slider plugins. */ export declare const Slider: FlowComponent<{ options?: KeenSliderOptions; plugins?: KeenSliderPlugin[]; }>; /** * Provides a helpful button with next/prev to pair with your slider. * * @param props.next - Specify if this should be a next button. * @param props.prev - Specify if this should be a prev button. * @param props.class - Class to override the button. * @param props.classList - List of classes to override the button. */ export declare const SliderButton: FlowComponent<{ next?: boolean; prev?: boolean; disabled?: boolean; class?: string; classList?: { [k: string]: boolean | undefined; }; }>; /** * Navigation dots component for the slider. * Displays a dot for each slide and highlights the current slide. * * @param props.class - Class to override the dots container. * @param props.classList - List of classes to override the dots container. * @param props.dotClass - Class to override individual dots. * @param props.dotClassList - List of classes to override individual dots. * * @example * ```tsx * * *
Slide 1
*
Slide 2
*
* *
* ``` */ export declare const SliderDots: Component<{ class?: string; classList?: { [k: string]: boolean | undefined; }; dotClass?: string; dotClassList?: { [k: string]: boolean | undefined; }; }>; /** * Thumbnail navigation component for the slider. * A second Slider that synchronizes with the main slider. * User provides thumbnail slides as children. * * @param props.options - Options for the thumbnail slider. * @param props.plugins - Plugins for the thumbnail slider. * * @example * ```tsx * * *
* Slide 1 *
*
* Slide 2 *
*
* *
* Thumbnail 1 *
*
* Thumbnail 2 *
*
*
* ``` */ export declare const SliderThumbnails: FlowComponent<{ options?: KeenSliderOptions; plugins?: KeenSliderPlugin[]; activeClass?: string; }>; export {};