import * as lit_html from 'lit-html'; import * as lit from 'lit'; import { LitElement } from 'lit'; declare const formats: readonly ["seconds", "minutes", "hours", "days"]; declare enum EnumFormats { Seconds = "seconds", Minutes = "minutes", Hours = "hours", Days = "days" } type TypeFormats = typeof formats[number]; /** * @since 3.1.0 * @status stable * * @tagname kemet-timer * @summary Counts down from a specified amount of time or date. * * @prop {TypeFormats} format - The format of the amount property * @prop {number} amount - The amount of time to set the timer * @prop {string} expires - Begins a count down to a specified time, accepts a string that matches value given for a Date constructor * * @event kemet-start - Fires when the timer starts * @event kemet-complete - Fires when the timer reaches 0 * @event kemet-increment - Fires on tick of the timer * */ declare class KemetTimer extends LitElement { static styles: lit.CSSResult[]; format: TypeFormats; amount: number; expires: string; /** @internal */ interval: any; firstUpdated(): void; updated(prevProps: any): void; render(): lit_html.TemplateResult<1>; getTimeInSeconds(time: number): number; timer(seconds?: number): void; countDown(): void; } declare global { interface HTMLElementTagNameMap { 'kemet-timer': KemetTimer; } } export { EnumFormats, type TypeFormats, KemetTimer as default, formats };