import { IItem } from '../../types'; import { MatchResult } from './helpers'; /** * Sets the extra matching patterns and rejected patterns for date-time information. * * @param extraMatchingPatterns - An array of strings representing the extra matching patterns. * @param extraRejectedPatterns - An array of strings representing the extra rejected patterns. * @param {boolean} [shouldAvoidUsingWordBoundary=false] - A boolean indicating whether to avoid using word boundaries (useful for languages like Chinese and Japanese). * * @remarks * - For languages like Japanese that don't use spaces between words (or where word boundaries are not easily determined by spaces or punctuation), * set `shouldAvoidUsingWordBoundary` to true to remove `\b` and use lookarounds to ensure correct boundaries. */ export declare const setExtraDateTimeInfoMatchingPatterns: (extraMatchingPatterns: string[], extraRejectedPatterns: string[], shouldAvoidUsingWordBoundary?: boolean) => void; /** * Matches date and time information from the title and snippet of an item. * * @param {IItem} item - The item containing title and snippet to be matched against. * @param {string[]} [customMatchingPattenrs] - Optional custom matching patterns to be included in the regex. * @returns {string[]} - An array of matched date and time information strings. */ export declare const matchDateTimeInfo: (item: IItem, customMatchingPattenrs?: string[]) => MatchResult[]; /** * Check if the provided string contains recognized date and time information. * @param str - The string to check. * @returns {boolean} - True if the string contains recognized date and time information, false otherwise. */ export declare const isRecognizedDateTimeInfo: (str: string) => boolean; /** * Determines if a given string is a rejected topic. * @param str - The string to check. * @returns {boolean} - True if the string is a rejected topic, false otherwise. */ export declare const isRejectedDateTimeInfo: (str: string) => boolean;