// Generated by dts-bundle-generator v9.5.1 import { ICustomElement } from 'component-register'; import _KeenSlider from 'keen-slider'; import { KeenSliderHooks as _KeenSliderHooks, KeenSliderInstance as _KeenSliderInstance, KeenSliderOptions as _KeenSliderOptions, KeenSliderPlugin as _KeenSliderPlugin } from 'keen-slider'; /** * `component-register` types `options.element` as a bare `ICustomElement`, but * at runtime it is always also an `HTMLElement`. Every component in this repo * needs the DOM half. */ export type CorrectComponentOptions = { element: HTMLElement & ICustomElement; }; export type CorrectComponentType = (props: T, options: CorrectComponentOptions) => unknown; export type KeenSliderInstance = _KeenSliderInstance; export type KeenSliderOptions = _KeenSliderOptions & { slides: { perScroll?: number; } & _KeenSliderOptions["slides"]; }; export type KeenSliderPlugin = _KeenSliderPlugin; export type KeenSliderAccessibilityOptions = { /** Template for each slide's `aria-label`: `{n}` and `{total}`. */ slideLabel?: string; }; declare class KeenSlider extends _KeenSlider { direction: "forward" | "backward" | null; constructor(element: ICustomElement & HTMLElement, config: KeenSliderOptions, plugins?: _KeenSliderPlugin[], accessibility?: KeenSliderAccessibilityOptions); } export type Props = { config?: KeenSliderOptions; centerSlides: boolean; refreshOnChildrenChange: boolean; /** * Each slide's `aria-label`. `{n}` is replaced with the slide number and * `{total}` with the slide count. Translate it rather than reaching in from * a theme. Slides that already carry an `aria-label` keep their own. */ slideLabel: string; }; declare const Name = "keen-slider"; declare const Component: CorrectComponentType; export declare const useKeenSlider: (element: HTMLElement & ICustomElement) => readonly [ import("solid-js").SourceAccessor, { readonly addPlugin: (plugin: KeenSliderPlugin) => () => void; } ]; export declare const getKeenSliderContext: (element: Element) => readonly [ import("solid-js").SourceAccessor, { readonly addPlugin: (plugin: KeenSliderPlugin) => () => void; } ]; export type AddPluginOptions = { target: void | HTMLElement; plugin: KeenSliderPlugin; controller?: AbortController; }; export declare function addPlugin({ target, plugin, controller }: AddPluginOptions): void; export declare const useKeenSliderAt: (target: () => string | undefined, host: HTMLElement) => import("solid-js").SourceAccessor, { readonly addPlugin: (plugin: KeenSliderPlugin) => () => void; } ]>; export type KeenSliderProps = KeenSlider$1.Props; declare namespace KeenSlider$1 { export { Component, Name, Props }; } export {};