import type { TextDocumentOffset, TextOffset } from '@cspell/cspell-types'; export { stringToRegExp } from './textRegex'; export declare function splitCamelCaseWordWithOffset(wo: TextOffset): Array; /** * Split camelCase words into an array of strings. */ export declare function splitCamelCaseWord(word: string): string[]; /** * This function lets you iterate over regular expression matches. */ export declare function match(reg: RegExp, text: string): Iterable; export declare function matchStringToTextOffset(reg: RegExp, text: string): Iterable; export declare function matchToTextOffset(reg: RegExp, text: TextOffset): Iterable; export declare function extractLinesOfText(text: string): Iterable; /** * Extract out whole words from a string of text. */ export declare function extractWordsFromText(text: string): Iterable; /** * Extract out whole words from a string of text. */ export declare function extractWordsFromTextOffset(text: TextOffset): Iterable; export declare function cleanText(text: string): string; export declare function cleanTextOffset(text: TextOffset): TextOffset; /** * Extract out whole words and words containing numbers from a string of text. */ export declare function extractPossibleWordsFromTextOffset(text: TextOffset): Iterable; export declare function extractWordsFromCode(text: string): Iterable; export declare function extractWordsFromCodeTextOffset(textOffset: TextOffset): Iterable; export declare function isUpperCase(word: string): boolean; export declare function isLowerCase(word: string): boolean; export declare function isFirstCharacterUpper(word: string): boolean; export declare function isFirstCharacterLower(word: string): boolean; export declare function ucFirst(word: string): string; export declare function lcFirst(word: string): string; export declare function snakeToCamel(word: string): string; export declare function camelToSnake(word: string): string; export declare function matchCase(example: string, word: string): string; export declare function textOffset(text: string, offset?: number): TextOffset; export declare function extractText(textOffset: TextOffset, startPos: number, endPos: number): string; export declare function calculateTextDocumentOffsets(uri: string, doc: string, wordOffsets: T[]): (TextDocumentOffset & T)[]; export declare function removeAccents(text: string): string; export declare const __testing__: { regExWords: RegExp; regExWordsAndDigits: RegExp; }; //# sourceMappingURL=text.d.ts.map