import type { Opts, TDate } from 'timeago.js'; import { cancel } from 'timeago.js'; export default function useTimeago(): { format: (data: TDate, opts?: Opts) => string; render: (nodes: HTMLElement | HTMLElement[] | NodeList, opts?: Opts) => HTMLElement[]; cancel: typeof cancel; };