/** * Counts the number of sentences in a given text. * * This function handles: * - Multiple paragraphs (separated by one or more new lines) * - HTML new line characters ( and ) * - Multiple consecutive dots (replacing them with a single dot) * - Empty paragraphs (skips them) * - Sentences ending with punctuation marks (.!?) followed by spaces * - Sentences at the end of the text * * @param text - The input text to count sentences in * @returns The total number of sentences in the text * * @example * // Returns 2 * countSentences("Hello world. This is a test."); * * @example * // Also returns 2 (handles HTML newlines) * countSentences("Hello world. This is a test."); */ export declare const countSentences: (text: string) => number;