@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
19 lines (18 loc) • 494 B
TypeScript
interface UseTimerProps {
expiryTimestamp: Date;
onExpire: () => void;
autoStart?: boolean;
}
export declare function useTimer({ expiryTimestamp: expiry, onExpire, autoStart, }: UseTimerProps): {
start: () => void;
pause: () => void;
resume: () => void;
restart: (newExpiryTimestamp: Date, newAutoStart?: boolean) => void;
isRunning: boolean;
totalSeconds: number;
seconds: number;
minutes: number;
hours: number;
days: number;
};
export {};