import 'web-streams-polyfill/polyfill'; import type { TextDecodeOptions, TextDecoderOptions } from './specs/TextDecoder.nitro'; export declare class TextDecoder { readonly encoding: string; readonly fatal: boolean; readonly ignoreBOM: boolean; private readonly decoder; constructor(label?: string, options?: TextDecoderOptions); decode(input?: ArrayBuffer | ArrayBufferView, options?: TextDecodeOptions): string; }