/** * Read one of tr's SET operands, resolving backslash escapes. * * This is tr's grammar, which is narrower than the shell's in two ways and * wider in one. tr has no `\xHH` and no `\c`: both are ordinary unknown * escapes. An unknown escape *drops* the backslash and keeps the letter, * where `echo -e` passes `\z` through unchanged — so `tr '\x41' -` deletes * `x`, `4` and `1`, not `A`. Octal is written `\NNN` with no leading zero * required, greedy to three digits, so `\0141` is `\014` followed by a * literal `1`. A three-digit value above 255 is ambiguous; GNU backs off to * the first two digits and leaves the third as a literal. * * Not covered: GNU also writes a warning to stderr for that ambiguous case * (exit status is unaffected), which this pure reader has no channel for. * Values 128-255 name a byte in GNU and a code point here, which is the * same string-vs-bytes limit the rest of tr already carries. * * Mirrors Python's `interpret_escapes`. */ export declare function interpretEscapes(text: string): string; //# sourceMappingURL=escapes.d.ts.map