export declare const capitalize: (s: s) => Capitalize; export declare const uncapitalize: (s: s) => Uncapitalize; export type firstChar = s extends `${infer head}${string}` ? head : ""; export type charsAfterFirst = s extends `${string}${infer tail}` ? tail : ""; export type lastChar = s extends `${infer head}${infer tail}` ? tail extends "" ? head : lastChar : s; export type charsBeforeLast = s extends `${infer head}${infer tail}` ? tail extends "" ? "" : `${head}${charsBeforeLast}` : ""; export type contains = s extends `${string}${sub}${string}` ? true : false; export declare const anchoredRegex: (regex: RegExp | string) => RegExp; export declare const deanchoredRegex: (regex: RegExp | string) => RegExp; export declare const anchoredSource: (regex: RegExp | string) => string; export declare const deanchoredSource: (regex: RegExp | string) => string; export declare const RegexPatterns: { negativeLookahead: (pattern: string) => `(?!${string})`; nonCapturingGroup: (pattern: string) => `(?:${string})`; }; export declare const Backslash = "\\"; export type Backslash = typeof Backslash; export declare const whitespaceChars: { readonly " ": 1; readonly "\n": 1; readonly "\t": 1; }; export type WhitespaceChar = keyof typeof whitespaceChars; export type trim = trimEnd>; export type trimStart = s extends `${WhitespaceChar}${infer tail}` ? trimEnd : s; export type trimEnd = s extends `${infer init}${WhitespaceChar}` ? trimEnd : s; export type isStringLiteral = [ t ] extends [string] ? [ string ] extends [t] ? false : Uppercase extends Uppercase> ? Lowercase extends Lowercase> ? true : false : false : false; export declare const emojiToUnicode: (emoji: string) => string; export declare const alphabet: readonly ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];