//#region src/string/match.d.ts /** * Check if a string ends with a specified substring * * @param haystack String to look in * @param needle String to look for * @param ignoreCase Ignore case when matching? _(defaults to `false`)_ * @returns `true` if the string ends with the given substring, otherwise `false` */ declare function endsWith(haystack: string, needle: string, ignoreCase?: boolean): boolean; /** * Check if a string includes a specified substring * * @param haystack String to look in * @param needle String to look for * @param ignoreCase Ignore case when matching? _(defaults to `false`)_ * @returns `true` if the string includes the given substring, otherwise `false` */ declare function includes(haystack: string, needle: string, ignoreCase?: boolean): boolean; /** * Check if a string starts with a specified substring * * @param haystack String to look in * @param needle String to look for * @param ignoreCase Ignore case when matching? _(defaults to `false`)_ * @returns `true` if the string starts with the given substring, otherwise `false` */ declare function startsWith(haystack: string, needle: string, ignoreCase?: boolean): boolean; //#endregion export { endsWith, includes, startsWith };