UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

16 lines (15 loc) 691 B
import { DprClientClass } from './DprClientClass'; declare abstract class PollingClientClass extends DprClientClass { protected polling: boolean; protected pollingTimer: number | null; protected POLLING_INTERVAL: number; protected csrfToken: string; protected TERMINAL_STATUSES: string[]; protected startPolling(tick: () => Promise<void>, shouldStop: () => boolean): void; protected stopPolling(): void; protected isTerminalStatus(status: string | null): boolean; protected getStatusFromElement(el: HTMLElement): string | null; protected isTerminalElement(el: HTMLElement): boolean; } export { PollingClientClass }; export default PollingClientClass;