import markdown from "./markdown"; import { toggleAccordion } from "./toggleAccordion"; export declare const filesize: (val: number) => string; /** * Format date based on locale. */ export declare const formatDate: (date: Date | string, format?: string) => string; /** * Format date as relative from now. * It displays "today" or dayjs.fromNow content, based on date. */ export declare const formatFromNow: (date: Date | string) => string; /** * Format date relative form now if date is less than a month ago. * Otherwise, show a formatted date. */ export declare const formatRelativeIfRecentDate: (date: Date | string) => string; export declare const truncate: (val: string, length?: number) => string | undefined; export declare const excerpt: (val: string, length?: number) => string | undefined; export { markdown, toggleAccordion }; //# sourceMappingURL=index.d.ts.map