14 lines
444 B
TypeScript
14 lines
444 B
TypeScript
/**
|
|
* Reusable countdown timer for dialog components.
|
|
*/
|
|
import type { TUI } from "@earendil-works/pi-tui";
|
|
export declare class CountdownTimer {
|
|
private intervalId;
|
|
private remainingSeconds;
|
|
private tui;
|
|
private onTick;
|
|
private onExpire;
|
|
constructor(timeoutMs: number, tui: TUI | undefined, onTick: (seconds: number) => void, onExpire: () => void);
|
|
dispose(): void;
|
|
}
|
|
//# sourceMappingURL=countdown-timer.d.ts.map
|