import { default as markdown, removeMarkdown } from './markdown'; import { toggleAccordion } from './toggleAccordion'; import { ResourceType } from '../types/resources'; import { TemporalCoverage } from '../types/datasets'; import { default as getUserAvatar, useUserAvatar } from './getUserAvatar'; export declare const RESOURCE_TYPE: readonly ["main", "documentation", "update", "api", "code", "other"]; export declare const getResourceLabel: (type: ResourceType) => string; export declare const filesize: (val: number) => string; export declare const summarize: (val: number, fractionDigits?: 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 formatDateRange: (daterange: TemporalCoverage) => string; export { getUserAvatar, markdown, removeMarkdown, toggleAccordion, useUserAvatar }; //# sourceMappingURL=index.d.ts.map