//#region src/strings.d.ts /** * Internal string utilities shared across runtime and core modules. * * @module dreamcli/strings */ /** Character code for `/` (forward slash). */ declare const SLASH = 47; /** Character code for `\` (backslash). */ declare const BACKSLASH = 92; /** * Remove trailing characters whose code points appear in `codes`. * * Linear-time replacement for trailing-character regexes such as * `/[\\/]+$/`. Those patterns are polynomial-ReDoS prone: the engine * greedily consumes the run, fails the end anchor, backtracks one * character at a time, and repeats that work from every start position — * O(n²) on adversarial input. This scan is O(n) with no backtracking. * * @param input - Source string. * @param codes - Character codes to strip from the end of `input`. * @returns `input` with all trailing matching characters removed. * @internal */ declare function stripTrailing(input: string, codes: readonly number[]): string; //#endregion export { BACKSLASH, SLASH, stripTrailing };