import type { CharAt, Concat, EndsWith, Includes, Join, PadEnd, PadStart, Repeat, ReplaceAll, Replace, Slice, Split, StartsWith, TrimEnd, TrimStart, Trim, } from '..' // biome-ignore lint/complexity/noUselessEmptyExport: required to make this a module export {} declare global { // biome-ignore lint/correctness/noUnusedVariables: T is required for interface extension interface ReadonlyArray { join( this: A, separator?: D ): Join } interface String { charAt( this: S, index: I ): CharAt concat( this: S, ...args: T ): Concat<[S, ...T]> endsWith< const S extends string, const T extends string, P extends number | undefined = undefined, >(this: S, searchString: T, index?: P): EndsWith includes< const S extends string, const T extends string, P extends number = 0, >(this: S, searchString: T, position?: P): Includes padEnd< const S extends string, const T extends number, const U extends string = ' ', >(this: S, maxLength: T, fillString?: U): PadEnd padStart< const S extends string, const T extends number, const U extends string = ' ', >(this: S, maxLength: T, fillString?: U): PadStart repeat( this: S, count: T ): Repeat replace< const S extends string, const T extends string, const U extends string, >(this: S, searchValue: T, replaceValue: U): Replace replaceAll< const S extends string, const T extends string, const U extends string, >(this: S, searchValue: T, replaceValue: U): ReplaceAll slice(this: S): Slice slice( this: S, start?: T ): Slice slice< const S extends string, const T extends number, const U extends number, >(this: S, start?: T, end?: U): Slice split( this: S, delimiter: D ): Split startsWith< const S extends string, const T extends string, P extends number = 0, >(this: S, searchString: T, position?: P): StartsWith toLowerCase(this: S): Lowercase toUpperCase(this: S): Uppercase trim(this: S): Trim trimEnd(this: S): TrimEnd trimStart(this: S): TrimStart } }