/** * Stand in for one raw output byte inside a text string. * * `\xHH` and `\NNN` name a byte, not a code point: bash writes `\xff` as * the single byte 0xFF, which is not valid UTF-8 on its own and so has no * character to stand for it. A byte above ASCII is therefore carried as * its surrogate escape, the same convention Python's own filesystem paths * use, and `encodeText` turns it back into that byte. * * Three octal digits reach past one byte (`\400` is 256, `\777` is 511) * and bash writes the low byte of those, so the value is masked rather * than refused. */ export declare function byteChar(value: number): string; /** * Encode shell text for output, byte escapes included. * * Every place the shell turns its own text into bytes goes through here, * because a string that reached it from `byteChar` holds a lone surrogate * that `TextEncoder` would write as U+FFFD. */ export declare function encodeText(text: string): Uint8Array; //# sourceMappingURL=bytes.d.ts.map