UNPKG

reading-time-estimator

Version:

A medium's like reading time estimator with internationalization support

12 lines (11 loc) 498 B
import type { Options, ReadingTime } from "./types.js"; export type { SupportedLanguages } from "./i18n/types.js"; export { supportedLanguages } from "./i18n/types.js"; export type { Options, ReadingTime } from "./types.js"; /** * * @param {string} data - The text to be estimated * @param {Options} options - The options for the reading time estimation * @returns {ReadingTime} The estimated reading time */ export declare const readingTime: (data: string, options?: Options) => ReadingTime;