import { Buffer } from "node:buffer"; export type CharsetSource = "content-type" | "html-meta" | "default" | "fallback"; export interface DecodedText { text: string; charset: string; charsetSource: CharsetSource; unsupportedCharset?: string; } export declare function decodeTextBody(body: Buffer | Uint8Array, contentType?: string): DecodedText;