message: refactor: lint, fix typings
diff: +declare module 'jschardet' {
  export interface DetectedEncoding {
  encoding: string
  confidence: number
  }
  -export function detect(buffer: Buffer | string, options?: { minimumThreshold: number }): DetectedEncoding
  + function detect(buffer: Buffer | string, options?: { minimumThreshold: number }): DetectedEncoding
  -export function detectAll(buffer: Buffer | string, options?: { minimumThreshold: number }): DetectedEncoding[]
  + function detectAll(buffer: Buffer | string, options?: { minimumThreshold: number }): DetectedEncoding[]
  -export function enableDebug(): void
  + function enableDebug(): void
  +
  + const chardet = {
  + detect,
  + detectAll,
  + enableDebug,
  + }
  +
  + export default chardet
  +}
  