/** * Returns a centered subsequence of * the string by cutting of a specified amount * of leading and trailing characters. * * @param str - The string to be used * @param charCount - The amount of character to be cut off on each end */ export declare function strFixedTrim(str: string, charCount: number): string; /** * Splits the string a fixed number of times * and puts the rest into the array. * * @param str - The string to be used * @param splitCount - The amount of splits */ export declare function strSplitWithTail(str: string, delimiter: string, splitCount: number): string[]; /** * Splits the string at the first occurence of * the delimiter and returns a two-element * array containing the first part and the rest * of the string. * * @param str - The string to be used * @param delimiter - The delimiter around which the string will be split */ export declare function strSplitOnce(str: string, delimiter: string): string[]; /** * Checks whether a string starts with a string * and ends with another string. * * @param str - The string to be tested * @param prefix - The start of a matching string * @param postfix - The end of a matching string */ export declare function strSurroundedBy(str: string, prefix: string, postfix: string): boolean; /** * Uses stack parsing with nested brackets to determine whether * there provided brackets actually enclose the * entire content. * * @param str - The string to be tested * @param openingBracket - The opening bracket character * @param closingBracket - The closing bracket character */ export declare function strSurroundedByBrackets(str: string, openingBracket: string, closingBracket: string): boolean; /** * Checks whether a string contains another string. * Mainly used to improve readability. * * @param str - The string to be tested * @param substring - A subsequence of a matching string */ export declare function strContains(str: string, substring: string): boolean; export declare function strSplitAt(str: string, index: number): string[];