/** * Represents a segment of consecutive uppercase letters in a string. */ export interface UppercaseSegment { /** The uppercase segment text */ segment: string; /** Start index (inclusive) */ start: number; /** End index (exclusive) */ end: number; } /** * Checks if the text contains 2 or more consecutive uppercase letters. * Pattern: /[A-Z]{2,}/ * * @param text - The text to check * @returns true if text contains consecutive uppercase letters */ export declare function hasConsecutiveUppercase(text: string): boolean; /** * Extracts all segments of 2 or more consecutive uppercase letters from text. * Pattern: /[A-Z]{2,}/g * * @param text - The text to extract segments from * @returns Array of uppercase segments with their positions */ export declare function extractUppercaseSegments(text: string): UppercaseSegment[]; /** * Matches a query string against a target string with case sensitivity * for consecutive uppercase segments in the query. * * - If query contains 2+ consecutive uppercase letters (e.g., AI, RNA), * those portions must match exactly in the target. * - Other portions are matched case-insensitively. * * @param query - The search query * @param target - The target string to match against * @returns true if query matches target according to the rules */ export declare function matchWithUppercaseSensitivity(query: string, target: string): boolean; //# sourceMappingURL=uppercase.d.ts.map