Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/components/carousel/autoplay-controller.d.ts
2024-01-30 10:59:28 -05:00

20 lines
690 B
TypeScript

import type { ReactiveController, ReactiveElement } from 'lit';
/**
* A controller that repeatedly calls the specified callback with the provided interval time.
* The timer is automatically paused while the user is interacting with the component.
*/
export declare class AutoplayController implements ReactiveController {
private host;
private timerId;
private tickCallback;
private activeInteractions;
paused: boolean;
stopped: boolean;
constructor(host: ReactiveElement, tickCallback: () => void);
hostConnected(): void;
hostDisconnected(): void;
start(interval: number): void;
stop(): void;
pause: () => void;
resume: () => void;
}