/** * Shared utilities for editor components */ /** * Convert HTML to plain text */ export declare const htmlToText: (html: string) => string; /** * Convert markdown to HTML (basic) */ export declare const markdownToHtml: (markdown: string) => string; /** * Serialize Tiptap JSON to HTML */ export declare const serializeToHtml: (json: any) => string; /** * Get word count from text */ export declare const getWordCount: (text: string) => number; /** * Get character count from text */ export declare const getCharacterCount: (text: string) => number; /** * Estimate reading time in minutes */ export declare const getReadingTime: (text: string, wordsPerMinute?: number) => number; /** * Sanitize HTML to prevent XSS */ export declare const sanitizeHtml: (html: string) => string; /** * Truncate text to specified length */ export declare const truncateText: (text: string, maxLength: number, suffix?: string) => string; /** * Extract plain text from Tiptap JSON */ export declare const extractText: (json: any) => string; /** * Insert text at cursor position in textarea */ export declare const insertAtCursor: (textarea: HTMLTextAreaElement, text: string, before?: string, after?: string) => void; //# sourceMappingURL=utils.d.ts.map