import { Option } from '../Option' ; /** Converts the given value to a string. */ export declare function make < A > ( value ) ; /** Returns the length of the given string. */ export declare function length ( str ) ; /** Returns a new string with `append` added after `str`. */ export declare function concat ( append ) ; export declare function concat ( str , append ) ; /** Returns the substring of `str` starting at character `start` up to but not including `end`. */ export declare function slice ( str , start , end ) ; export declare function slice ( start , end ) ; /** Returns the substring of `str` starting at character `start` to the end of the string. */ export declare function sliceToEnd ( str , start ) ; export declare function sliceToEnd ( start ) ; /** Converts `str` to lower case. */ export declare function toLowerCase ( str ) ; /** Converts `str` to upper case. */ export declare function toUpperCase ( str ) ; /** Returns a new string with leading and trailing whitespace removed from `str`. */ export declare function trim ( str ) ; /** Returns a new string with leading whitespace removed from `str`. */ export declare function trimStart ( str ) ; /** Returns a new string with trailing whitespace removed from `str`. */ export declare function trimEnd ( str ) ; /** Returns `true` if the provided string is empty. */ export declare function isEmpty ( str ) ; /** Returns `true` if the provided string is not empty. */ export declare function isNotEmpty ( str ) ; /** Splits the given string at every occurrence of `delimiter` and returns an array of the resulting substrings. */ export declare function split ( delimiter ) ; export declare function split ( str , delimiter ) ; /** Splits the given string at every occurrence of `regex` and returns an array of the resulting substrings. */ export declare function splitByRe ( str , regex ) ; export declare function splitByRe ( regex ) ; /** Splits the string at the given index, returning a tuple of the parts. */ export declare function splitAt ( str , index ) ; export declare function splitAt ( index ) ; /** Returns `true` if `searchValue` appears anywhere in the given string. */ export declare function includes ( searchValue ) ; export declare function includes ( str , searchValue ) ; /** Replaces the first occurrence of `oldValue` with `newValue` in the given string and returns a new string. */ export declare function replace ( oldValue , newValue ) ; export declare function replace ( str , oldValue , newValue ) ; /** Replaces each occurrence of `oldValue` with `newValue` in the given string and returns a new string. */ export declare function replaceAll ( oldValue , newValue ) ; export declare function replaceAll ( str , oldValue , newValue ) ; /** Replaces the matched regular expression with `newValue` in the given string and returns a new string. */ export declare function replaceByRe ( str , regex , value ) ; export declare function replaceByRe ( regex , value ) ; /** Returns a new string with the first occurrence of `value` removed from `str`. */ export declare function remove ( value ) ; export declare function remove ( str , value ) ; /** Returns a new string with every occurrence of `value` removed from `str`. */ export declare function removeAll ( value ) ; export declare function removeAll ( str , value ) ; /** Returns `Some(index)`, where `index` is the starting position of the first match of regular expression in the given string. */ export declare function search ( str , regex ) ; export declare function search ( regex ) ; /** Matches the given string against the provided regular expression, ir returns `None` if there is no match. */ export declare function match ( str , regex ) ; export declare function match ( regex ) ; /** Returns a string consisting of `n` repetitions of `str`. */ export declare function repeat ( str , n ) ; export declare function repeat ( n ) ; /** Returns `Some(index)`, where `index` is the starting position of the first occurrence of `searchValue` within `str`. */ export declare function indexOf ( searchValue ) ; export declare function indexOf ( str , searchValue ) ; /** Returns `Some(index)`, where `index` is the starting position of the last occurrence of `searchValue` within `str`. */ export declare function lastIndexOf ( searchValue ) ; export declare function lastIndexOf ( str , searchValue ) ; /** Returns `true` if the given string ends with `substr`. */ export declare function endsWith ( substr ) ; export declare function endsWith ( str , substr ) ; /** Returns `true` if the given string starts with `substr`. */ export declare function startsWith ( substr ) ; export declare function startsWith ( str , substr ) ; /** Returns `value`, where `value` is a string consisting of the character at location `n` in the string, or `undefined` if the `n` is out of range. */ export declare function getUnsafe ( str , n ) ; export declare function getUnsafe ( n ) ; /** Returns `Some(value)`, where `value` is a string consisting of the character at location `n` in the string, or `None` if the `n` is out of range. */ export declare function get ( str , n ) ; export declare function get ( n ) ; /** Creates an array with one character of `str` per element. */ export declare function toArray ( str ) ; /** Returns `Some(value)` where `value` is the first character of the string, or `None` if the given string is empty. */ export declare function head ( str ) ; /** Returns `Some(value)` where `value` is the last character of the string, or `None` if the given string is empty. */ export declare function last ( str ) ;