interface StringDecoderInstance { readonly encoding: string; write(buf: Uint8Array): string; end(buf?: Uint8Array): string; } interface StringDecoderConstructor { new (encoding?: string): StringDecoderInstance; (this: StringDecoderInstance, encoding?: string): void; prototype: StringDecoderInstance; } /** * StringDecoder provides an interface for efficiently decoding Buffer data * into strings while preserving multi-byte characters that are split across * Buffer boundaries. * * Implemented as a function constructor (not ES6 class) for compatibility * with legacy CJS patterns that use StringDecoder.call(this, enc). */ declare const StringDecoder: StringDecoderConstructor; export { StringDecoder }; declare const _default: { StringDecoder: StringDecoderConstructor; }; export default _default;