UNPKG

@ronniepettersson/homebridge-dummy

Version:

Create Homebridge accessories to help with automation and control — scheduling, delays, sensors, commands, webhooks, and more

17 lines (16 loc) 601 B
import { Timeout } from './timeout.js'; import { TimerConfig } from '../model/types.js'; import { Log } from '../tools/log.js'; export declare class Timer extends Timeout { private readonly config; private readonly callerId; static new(config: TimerConfig, callerId: string, callerName: string, log: Log, disableLogging: boolean): Timer | undefined; private expiresTimestamp?; private constructor(); private get timerStorageKey(); private storeExpiresTimestamp; start(callback: () => Promise<void>): void; reset(): void; cancel(): void; teardown(): void; }