UNPKG

survey-core

Version:

A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.

23 lines (22 loc) 799 B
import { EventBase } from "./base"; export declare var surveyTimerFunctions: { setTimeout: (func: () => any) => number; clearTimeout: (timerId: number) => void; safeTimeOut: (func: () => any, delay: number) => number | any; now(): number; }; export interface SurveyTimerEvent { seconds: number; } export declare class SurveyTimer { private static instanceValue; static get instance(): SurveyTimer; private listenerCounter; private timerId; private prevTimeInMs; onTimerTick: EventBase<SurveyTimer, SurveyTimerEvent>; onTimer: EventBase<SurveyTimer, SurveyTimerEvent>; start(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => void): void; stop(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => any): void; doTimer(): void; }