/**
* Detects buffer enconding
* This is basic helper that will only detect buffer encoding between `utf8` and `utf16le`
* @param arg the buffer to detect encoding
* @returns detected encoding
*/
export declarefunctiondetectEncoding(arg: Buffer): BufferEncoding;