/** * Convert string to Title Case * @param {string} str - Input string * @returns {string} Title Case string */ export function toTitleCase(str?: string): string; /** * Split string into lines * @param {string} str - Input string * @returns {string[]} Array of lines */ export function getLines(str?: string): string[]; /** * Get line count from string * @param {string} str - Input string * @returns {number} Number of lines */ export function getLineCount(str?: string): number; /** * Get word count from string * @param {string} str - Input string * @returns {number} Word count */ export function getWordCount(str?: string): number; /** * Get leading spaces from text * @param {string} text - Input text * @returns {string} Leading spaces */ export function getLeadingSpaces(text: string): string; /** * Get first character from string * @param {string} str - Input string * @returns {string} First character */ export function getFirstCharacter(str: string): string; /** * Get last character from string * @param {string} str - Input string * @returns {string} Last character */ export function getLastCharacter(str: string): string; /** * Get row and column position from character index * @param {string} input - Input string * @param {number} indexToFind - Character index to find * @returns {{row: number, col: number}} Row and column position */ export function getRowAndColumnFromCharPos(input: string, indexToFind: number): { row: number; col: number; }; /** * Get text between character positions * @param {string} text - Input text * @param {number} start - Start position * @param {number} end - End position * @returns {string} Text between positions */ export function getTextBetweenChars(text: string, start: number, end: number): string; /** * Get text between two words * @param {string} s * @param {string} prefix * @param {string} suffix * @returns {string} */ export function getTextBetweenWords(s: string, prefix: string, suffix: string): string; /** * Retrieves the text content between the specified start and end lines. * * @param {string} content - The content to extract text from. * @param {number} startLine - The line number where the extraction should start. * @param {number} endLine - The line number where the extraction should end. * @returns {string|undefined} - The extracted text content, or undefined if both startLine and endLine are not defined. */ export function getTextBetweenLines(content: string, startLine: number, endLine: number): string | undefined; /** * Replace text between character positions * @param {string} str - Input string * @param {number} start - Start position * @param {number} end - End position * @param {string} newStr - Replacement string * @returns {string} Modified string */ export function replaceTextBetweenChars(str: string, start: number, end: number, newStr: string): string; /** * Strip indentation from string * @param {string} string - Input string * @param {number} [indentation] - Indentation level to strip * @returns {string} String with indentation stripped */ export function stripIndent(string: string, indentation?: number): string; /** * Add indentation to string * @param {string} string - Input string * @param {number} [count=1] - Number of indentations to add * @param {object} [options={}] - Options for indentation * @param {string} [options.indent=' '] - Character(s) to use for indentation * @param {boolean} [options.includeEmptyLines=false] - Whether to indent empty lines * @returns {string} Indented string */ export function indentString(string: string, count?: number, options?: { indent?: string; includeEmptyLines?: boolean; }): string; /** * Removes the indentation of multiline strings * @link https://github.com/victornpb/tiny-dedent/ * @param {string} str - A template literal string * @returns {string} A string without the indentation */ export function dedentString(str: string): string; /** * Strip out comment blocks * @param {string} str * @param {import('../types').SyntaxType} syntax * @returns {string} clean comment-less string */ export function stripComments(str: string, syntax?: import("../types").SyntaxType): string; export function convertCommentSyntax(str: any, { from, to }: { from: any; to: any; }): any; export function stripSingleLineDoubleSlashComments(str?: string): string; export function stripMultiLineDoubleSlashComments(str?: string): string; export function stripHTMLComments(block: any, opts: any): any; /** * Trim leading & trailing spaces/line breaks in code and keeps the indentation of the first non-empty line * @param {string|number} str * @returns {string} */ export function trimString(str?: string | number): string; /** * Find minimum indentation in string * @param {string} string - Input string * @returns {number} Minimum indentation level */ export function findMinIndent(string: string): number; /** * Check if string is uppercase * @param {string} str - Input string * @returns {boolean} True if uppercase */ export function isUpperCase(str: string): boolean; //# sourceMappingURL=text.d.ts.map