/** * Runs the notice auto-close timer and reports progress updates. * Returns controls to pause and resume the timer. */ export default function useNoticeTimer(duration: number | false | null, onClose: VoidFunction, onUpdate: (ptg: number) => void): readonly [() => void, () => void];